Commit c401fe7b authored by nmostafa's avatar nmostafa

Minor fixes to compile with g++ 5.1

parent 1b2b7d59
...@@ -266,16 +266,26 @@ void MLIRCompiler::build_ng_dialect() ...@@ -266,16 +266,26 @@ void MLIRCompiler::build_ng_dialect()
create_return(); create_return();
} }
template <>
mlir::Value* MLIRCompiler::COMPILE_OP_DECL(ngraph::op::Add)
{
return compiler.create_binary_op<mlir::NGAddOp>(ng_node);
}
template <> namespace ngraph
mlir::Value* MLIRCompiler::COMPILE_OP_DECL(ngraph::op::Dot)
{ {
return compiler.create_binary_op<mlir::NGDotOp>(ng_node); namespace runtime
{
namespace ngmlir
{
template <>
mlir::Value* MLIRCompiler::COMPILE_OP_DECL(ngraph::op::Add)
{
return compiler.create_binary_op<mlir::NGAddOp>(ng_node);
}
template <>
mlir::Value* MLIRCompiler::COMPILE_OP_DECL(ngraph::op::Dot)
{
return compiler.create_binary_op<mlir::NGDotOp>(ng_node);
}
}
}
} }
const MLIRCompiler::MLIRCompOpMap MLIRCompiler::op_dispatcher{ const MLIRCompiler::MLIRCompOpMap MLIRCompiler::op_dispatcher{
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <stdint.h> #include <stdint.h>
#include <vector> #include <vector>
#include <stdlib.h>
namespace ngraph namespace ngraph
{ {
namespace runtime namespace runtime
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment