Commit a1c74973 authored by Diego Caballero's avatar Diego Caballero

[MLIR] Apply style

parent 62e52be8
...@@ -68,7 +68,6 @@ namespace ngraph ...@@ -68,7 +68,6 @@ namespace ngraph
/// Returns the memory manager used by this sub-graph compiler. /// Returns the memory manager used by this sub-graph compiler.
MLIRMemMgr& get_mem_mgr() { return m_mem_mgr; } MLIRMemMgr& get_mem_mgr() { return m_mem_mgr; }
/// Returns memory manager pointer argument ID in call interface. /// Returns memory manager pointer argument ID in call interface.
unsigned get_mem_mgr_arg_id(mlir::Function* func) unsigned get_mem_mgr_arg_id(mlir::Function* func)
{ {
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
//***************************************************************************** //*****************************************************************************
#include "memory_manager.hpp" #include "memory_manager.hpp"
#include "ngraph/ngraph_visibility.hpp"
#include <memory> #include <memory>
#include "ngraph/ngraph_visibility.hpp"
using namespace ngraph::runtime::ngmlir; using namespace ngraph::runtime::ngmlir;
......
...@@ -15,12 +15,12 @@ ...@@ -15,12 +15,12 @@
//***************************************************************************** //*****************************************************************************
#include "mlir_subgraph_extraction.hpp" #include "mlir_subgraph_extraction.hpp"
#include "ngraph/assertion.hpp"
#include "ngraph/graph_util.hpp" #include "ngraph/graph_util.hpp"
#include "ngraph/op/add.hpp" #include "ngraph/op/add.hpp"
#include "ngraph/op/dot.hpp" #include "ngraph/op/dot.hpp"
#include "ngraph/op/experimental/compiled_kernel.hpp" #include "ngraph/op/experimental/compiled_kernel.hpp"
#include "ngraph/op/get_output_element.hpp" #include "ngraph/op/get_output_element.hpp"
#include "ngraph/assertion.hpp"
using namespace ngraph::descriptor; using namespace ngraph::descriptor;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -49,15 +49,14 @@ namespace ngraph ...@@ -49,15 +49,14 @@ namespace ngraph
for (const TensorViewWrapper& result : out) for (const TensorViewWrapper& result : out)
{ {
auto buffer_index = external_function->get_buffer_index(result.get_name()); auto buffer_index = external_function->get_buffer_index(result.get_name());
buffer_indices.push_back(buffer_index); buffer_indices.push_back(buffer_index);
} }
// Create functor that will be executed to compile and run this CompiledKernel. // Create functor that will be executed to compile and run this CompiledKernel.
// Note that 'double_ptr_args' must be captured by value since it's a local var. // Note that 'double_ptr_args' must be captured by value since it's a local var.
auto functor = [node, buffer_indices](CPURuntimeContext* ctx, auto functor = [node, buffer_indices](CPURuntimeContext* ctx,
CPUExecutionContext* ectx) { CPUExecutionContext* ectx) {
// MLIR requires a list of type-erased pointer to arguments. Tensors must have // MLIR requires a list of type-erased pointer to arguments. Tensors must have
// been allocated at this point so we can get rid of the extra reference. // been allocated at this point so we can get rid of the extra reference.
......
...@@ -192,7 +192,6 @@ ...@@ -192,7 +192,6 @@
#include "ngraph/runtime/cpu/pass/cpu_workspace_insertion.hpp" #include "ngraph/runtime/cpu/pass/cpu_workspace_insertion.hpp"
#include "ngraph/runtime/cpu/pass/halide_subgraph_extraction.hpp" #include "ngraph/runtime/cpu/pass/halide_subgraph_extraction.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
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