Skip to content

Commit cd63475

Browse files
Removed debug prints
1 parent 6d49850 commit cd63475

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

src/dnnl/dnnl_graph_compiler.cpp

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,8 @@ struct dnnl_graph_compiler {
6262
compile(const std::string_view &graph_json) const {
6363
std::vector<size_t> inputIds;
6464
std::vector<size_t> outputIds;
65-
mlir::ModuleOp module =
66-
JsonParser::parse(context, graph_json, inputIds, outputIds);
67-
68-
#ifndef NDEBUG // TODO: Remove this block
69-
auto &out = llvm::outs();
70-
out << "OneDNN JSON to MLIR:\n";
71-
module.print(out);
72-
out << "Input IDs: ";
73-
for (auto i : inputIds) {
74-
out << i << ' ';
75-
}
76-
out << "\nOutput IDs: ";
77-
for (auto i : outputIds) {
78-
out << i << ' ';
79-
}
80-
out << '\n';
81-
#endif
65+
// mlir::ModuleOp module =
66+
JsonParser::parse(context, graph_json, inputIds, outputIds);
8267

8368
// TODO: Compile the module
8469

test/dnnl/TestJsonParser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ static void compile(const char *fileName) {
1717
dnnl_graph_compiler_destroy(gc);
1818
}
1919

20+
// TODO: Add results validation
2021
TEST(TestJsonParser, AddRelu) { compile("add_relu.json"); }
2122
TEST(TestJsonParser, Mpl) { compile("mpl.json"); }
2223

0 commit comments

Comments
 (0)