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
3ce0e496
Commit
3ce0e496
authored
Aug 29, 2017
by
Scott Cyphers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use typeid properly; need to use dereferenced types so the compiler doesn't infer the static type.
parent
51808ee1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
node.hpp
src/ngraph/node.hpp
+1
-3
build_graph.cpp
test/build_graph.cpp
+1
-1
No files found.
src/ngraph/node.hpp
View file @
3ce0e496
...
...
@@ -68,10 +68,8 @@ namespace ngraph
** Return true if this has the same implementing class as call. This
** will be used by the pattern matcher when comparing a pattern
** graph against the graph.
** TODO: typeids are Node*, doc says they should be the actual classes.
**/
bool
has_same_op
(
const
Node
::
ptr
&
node
)
{
return
typeid
(
this
)
==
typeid
(
node
.
get
());
}
bool
has_same_op
(
const
Node
::
ptr
&
node
)
const
{
return
typeid
(
*
this
)
==
typeid
(
*
node
.
get
());
}
protected
:
std
::
vector
<
Node
::
ptr
>
m_arguments
;
...
...
test/build_graph.cpp
View file @
3ce0e496
...
...
@@ -62,7 +62,7 @@ TEST(build_graph, as_type)
}
// Check Call comparisons
TEST
(
DISABLED_
build_graph
,
call_comparison
)
TEST
(
build_graph
,
call_comparison
)
{
auto
fun
=
make_shared
<
Function
>
(
3
);
fun
->
parameter
(
0
)
->
type
(
element
::
float32_t
,
{
32
,
3
});
...
...
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