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
79f346b3
Commit
79f346b3
authored
Sep 04, 2019
by
Amy Zhuang
Committed by
Scott Cyphers
Sep 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable ArgMin, ArgMax, Maximum, Minimum, Greater, and Less for non-integral data type. (#3550)
parent
7809effd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
44 deletions
+0
-44
mlir_subgraph_extraction.cpp
src/contrib/mlir/compiler/pass/mlir_subgraph_extraction.cpp
+0
-44
No files found.
src/contrib/mlir/compiler/pass/mlir_subgraph_extraction.cpp
View file @
79f346b3
...
...
@@ -437,50 +437,6 @@ bool MLIRSubgraphExtractionPass::is_supported_mlir_op(std::shared_ptr<Node> node
}
}
if
(
TI
(
ngraph
::
op
::
ArgMin
)
==
TI
(
*
node
)
||
TI
(
ngraph
::
op
::
ArgMax
)
==
TI
(
*
node
))
{
// TODO: Remove this when MLIR has float point cmp support
if
(
!
node
->
input
(
0
).
get_element_type
().
is_integral
())
{
return
false
;
}
else
{
return
true
;
}
}
if
(
TI
(
ngraph
::
op
::
Maximum
)
==
TI
(
*
node
)
||
TI
(
ngraph
::
op
::
Minimum
)
==
TI
(
*
node
))
{
// TODO: Remove this when MLIR has float point cmp support
if
(
!
node
->
input
(
0
).
get_element_type
().
is_integral
())
{
return
false
;
}
else
{
return
true
;
}
}
if
(
TI
(
ngraph
::
op
::
Greater
)
==
TI
(
*
node
)
||
TI
(
ngraph
::
op
::
Less
)
==
TI
(
*
node
))
{
// TODO: Remove this when MLIR has float point cmp support
if
(
!
node
->
input
(
0
).
get_element_type
().
is_integral
())
{
return
false
;
}
else
{
return
true
;
}
}
if
(
TI
(
ngraph
::
op
::
Negative
)
==
TI
(
*
node
))
{
return
true
;
}
if
(
TI
(
ngraph
::
op
::
Convolution
)
==
TI
(
*
node
))
{
// No padding for now
...
...
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