Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
a1c74973
Commit
a1c74973
authored
Jun 03, 2019
by
Diego Caballero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MLIR] Apply style
parent
62e52be8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
7 deletions
+4
-7
compiler.hpp
src/contrib/mlir/compiler.hpp
+0
-1
memory_manager.cpp
src/contrib/mlir/memory_manager.cpp
+1
-1
mlir_subgraph_extraction.cpp
src/contrib/mlir/pass/mlir_subgraph_extraction.cpp
+1
-1
mlir_cpu_compiled_kernel.cpp
src/ngraph/runtime/cpu/builder/mlir_cpu_compiled_kernel.cpp
+2
-3
cpu_external_function.cpp
src/ngraph/runtime/cpu/cpu_external_function.cpp
+0
-1
No files found.
src/contrib/mlir/compiler.hpp
View file @
a1c74973
...
...
@@ -68,7 +68,6 @@ namespace ngraph
/// Returns the memory manager used by this sub-graph compiler.
MLIRMemMgr
&
get_mem_mgr
()
{
return
m_mem_mgr
;
}
/// Returns memory manager pointer argument ID in call interface.
unsigned
get_mem_mgr_arg_id
(
mlir
::
Function
*
func
)
{
...
...
src/contrib/mlir/memory_manager.cpp
View file @
a1c74973
...
...
@@ -15,8 +15,8 @@
//*****************************************************************************
#include "memory_manager.hpp"
#include "ngraph/ngraph_visibility.hpp"
#include <memory>
#include "ngraph/ngraph_visibility.hpp"
using
namespace
ngraph
::
runtime
::
ngmlir
;
...
...
src/contrib/mlir/pass/mlir_subgraph_extraction.cpp
View file @
a1c74973
...
...
@@ -15,12 +15,12 @@
//*****************************************************************************
#include "mlir_subgraph_extraction.hpp"
#include "ngraph/assertion.hpp"
#include "ngraph/graph_util.hpp"
#include "ngraph/op/add.hpp"
#include "ngraph/op/dot.hpp"
#include "ngraph/op/experimental/compiled_kernel.hpp"
#include "ngraph/op/get_output_element.hpp"
#include "ngraph/assertion.hpp"
using
namespace
ngraph
::
descriptor
;
using
namespace
ngraph
::
op
;
...
...
src/ngraph/runtime/cpu/builder/mlir_cpu_compiled_kernel.cpp
View file @
a1c74973
...
...
@@ -49,15 +49,14 @@ namespace ngraph
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
);
}
// 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.
auto
functor
=
[
node
,
buffer_indices
](
CPURuntimeContext
*
ctx
,
CPUExecutionContext
*
ectx
)
{
CPUExecutionContext
*
ectx
)
{
// 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.
...
...
src/ngraph/runtime/cpu/cpu_external_function.cpp
View file @
a1c74973
...
...
@@ -192,7 +192,6 @@
#include "ngraph/runtime/cpu/pass/cpu_workspace_insertion.hpp"
#include "ngraph/runtime/cpu/pass/halide_subgraph_extraction.hpp"
using
namespace
std
;
using
namespace
ngraph
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment