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
1abe0857
Commit
1abe0857
authored
Jun 10, 2019
by
nmostafa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code-style in compiler.cpp
parent
cbdb405e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
compiler.cpp
src/contrib/mlir/compiler.cpp
+6
-0
No files found.
src/contrib/mlir/compiler.cpp
View file @
1abe0857
...
...
@@ -387,7 +387,9 @@ void MLIRCompiler::cleanup()
// Free MLIR function builder.
if
(
m_builder
)
{
m_builder
.
reset
(
nullptr
);
}
// Free allocated memory for JIT'ed code temps
m_mem_mgr
.
freeAll
();
...
...
@@ -402,7 +404,9 @@ SmallVector<void*, 8> MLIRCompiler::allocate_memref_args(mlir::Function* func)
auto
descriptor
=
allocate_memref_descriptor
(
arg
->
getType
());
if
(
!
descriptor
)
{
continue
;
}
args
.
push_back
(
descriptor
);
}
return
args
;
...
...
@@ -412,7 +416,9 @@ mlir::StaticFloatMemRef* MLIRCompiler::allocate_memref_descriptor(mlir::Type typ
{
auto
memRefType
=
type
.
dyn_cast
<
mlir
::
MemRefType
>
();
if
(
!
memRefType
)
{
return
nullptr
;
}
NGRAPH_ASSERT
(
memRefType
.
getNumDynamicDims
()
==
0
)
<<
"No support for dynamic shapes"
;
// We only use StaticFloatMemRef because that's what MLIR currently offers.
...
...
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