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
feefdbb2
Commit
feefdbb2
authored
Jul 22, 2019
by
Diego Caballero
Committed by
Scott Cyphers
Jul 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MLIR] Fix warnings in MLIR code. (#3280)
parent
a6da7f1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
lowerer.cpp
src/contrib/mlir/lowerer.cpp
+1
-2
mlir_subgraph_extraction.cpp
src/contrib/mlir/pass/mlir_subgraph_extraction.cpp
+0
-2
No files found.
src/contrib/mlir/lowerer.cpp
View file @
feefdbb2
...
...
@@ -350,6 +350,7 @@ namespace
}
return
callBackFuncPtr
;
}
// NGDialect converters
Type
NGraphTypeConverter
::
convertType
(
Type
type
)
{
...
...
@@ -576,7 +577,6 @@ namespace
// Create Value for result, and extract type info.
Value
*
result
=
m_pass
.
buildOutputDefs
(
op
,
rewriter
)[
0
];
NGRAPH_CHECK
(
result
,
"Unexpected null result in ConcatOp"
);
auto
resultTy
=
result
->
getType
().
cast
<
MemRefType
>
();
// Create view to write into result.
MemRefView
vRes
(
result
);
...
...
@@ -590,7 +590,6 @@ namespace
for
(
auto
&
operand
:
operands
)
{
NGRAPH_CHECK
(
operand
,
"Unexpected null operand in ConcatOp"
);
auto
operandTy
=
result
->
getType
().
cast
<
MemRefType
>
();
// Assuming rank = r, and the concatenation axis is A where A<r, we'll be creating
// loops of this form:
...
...
src/contrib/mlir/pass/mlir_subgraph_extraction.cpp
View file @
feefdbb2
...
...
@@ -74,7 +74,6 @@ void MLIRSubgraphExtractionPass::MLIRSubgraph::merge(MLIRSubgraph& sg2)
// Associate nodes of second sub-graph to first one
auto
sg_nodes
=
sg2
.
get_nodes
();
auto
&
node_map
=
m_pass
.
m_node_to_graph
;
for
(
auto
node
:
sg_nodes
)
{
NGRAPH_DEBUG
<<
*
node
;
...
...
@@ -112,7 +111,6 @@ bool MLIRSubgraphExtractionPass::run_on_function(std::shared_ptr<Function> func)
for
(
auto
op
:
func
->
get_ordered_ops
())
{
NodeVector
inputs
;
int
first_graph_id
=
-
1
;
std
::
unordered_set
<
int
>
subgraph_ids
;
// unsupported ops, skip
if
(
!
is_supported_mlir_op
(
op
))
...
...
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