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()
create_return();
}
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)
namespace ngraph
{
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{
......
......@@ -18,7 +18,7 @@
#include <stdint.h>
#include <vector>
#include <stdlib.h>
namespace ngraph
{
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