Commit 05ca1e02 authored by nmostafa's avatar nmostafa

style-apply

parent 2243df56
...@@ -416,9 +416,12 @@ mlir::Operation* MLIRCompiler::create_generic_op(const ngraph::Node* ng_node) ...@@ -416,9 +416,12 @@ mlir::Operation* MLIRCompiler::create_generic_op(const ngraph::Node* ng_node)
res_types.push_back(get_mlir_type(output.get_tensor_ptr().get())); res_types.push_back(get_mlir_type(output.get_tensor_ptr().get()));
} }
return (m_builder return (m_builder->create<Op,
->create<Op, ArrayRef<mlir::Type>, ArrayRef<mlir::Value*>, ArrayRef<mlir::NamedAttribute>>( ArrayRef<mlir::Type>,
mlir::UnknownLoc::get(&m_context), res_types, arg_values, {/* no attrs */})).getOperation(); ArrayRef<mlir::Value*>,
ArrayRef<mlir::NamedAttribute>>(
mlir::UnknownLoc::get(&m_context), res_types, arg_values, {/* no attrs */}))
.getOperation();
} }
const MLIRCompiler::MLIRCompOpMap MLIRCompiler::op_dispatcher{ const MLIRCompiler::MLIRCompOpMap MLIRCompiler::op_dispatcher{
......
...@@ -99,7 +99,8 @@ namespace ngraph ...@@ -99,7 +99,8 @@ namespace ngraph
void build_ng_dialect(); void build_ng_dialect();
template <typename Op> template <typename Op>
static mlir::Operation* create_op(MLIRCompiler& compiler, const ngraph::Node* ng_node) static mlir::Operation* create_op(MLIRCompiler& compiler,
const ngraph::Node* ng_node)
{ {
throw std::runtime_error("Unimplemented op '" + ng_node->description() + throw std::runtime_error("Unimplemented op '" + ng_node->description() +
"' in MLIR Compiler"); "' in MLIR Compiler");
......
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