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
c66a7469
Commit
c66a7469
authored
7 years ago
by
Scott Cyphers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Review comments
parent
3c6ab287
master
v0.29.0-rc.0
v0.28.0-rc.1
v0.28.0-rc.0
v0.27.1-rc.3
v0.27.1-rc.2
v0.27.1-rc.1
v0.27.1-rc.0
v0.27.0-rc.1
v0.27.0-rc.0
v0.26.1-rc.0
v0.26.0
v0.26.0-rc.8
v0.26.0-rc.7
v0.26.0-rc.6
v0.26.0-rc.5
v0.26.0-rc.4
v0.26.0-rc.3
v0.26.0-rc.2
v0.26.0-rc.0
v0.25.1-rc.11
v0.25.1-rc.10
v0.25.1-rc.9
v0.25.1-rc.8
v0.25.1-rc.7
v0.25.1-rc.6
v0.25.1-rc.5
v0.25.1-rc.4
v0.25.1-rc.3
v0.25.1-rc.2
v0.25.1-rc.1
v0.25.1-rc.0
v0.25.0
v0.25.0-rc.3
v0.25.0-rc.2
v0.25.0-rc.1
v0.25.0-rc.0
v0.25.0-dev.0
v0.24.0
v0.24.0-rc.3
v0.24.0-rc.2
v0.24.0-rc.1
v0.24.0-rc.0
v0.23.0-rc.7
v0.23.0-rc.6
v0.23.0-rc.5
v0.23.0-rc.4
v0.23.0-rc.3
v0.23.0-rc.2
v0.23.0-rc.1
v0.23.0-rc.0
v0.22.2-rc.0
v0.22.1
v0.22.1-rc.0
v0.22.0
v0.22.0-rc.2
v0.22.0-rc.0
v0.21.0
v0.21.0-rc.1
v0.21.0-rc.0
v0.20.1-rc.4
v0.20.1-rc.3
v0.20.1-rc.2
v0.20.1-rc.1
v0.20.1-rc.0
v0.20.0-rc.2
v0.20.0-rc.1
v0.20.0-rc.0
v0.20.0-dev.0
v0.19.1
v0.19.1-rc.0
v0.19.0
v0.19.0-rc.5
v0.19.0-rc.4
v0.19.0-rc.3
v0.19.0-rc.2
v0.19.0-rc.1
v0.19.0-rc.0
v0.18.1
v0.18.1-rc.1
v0.18.1-rc.0
v0.18.0
v0.18.0-rc.2
v0.18.0-rc.1
v0.18.0-rc.0
v0.17.0-rc.1
v0.17.0-rc.0
v0.16.0-rc.3
v0.16.0-rc.2
v0.16.0-rc.1
v0.16.0-rc.0
v0.15.1-rc.2
v0.15.1-rc.1
v0.15.0
v0.15.0-rc.2
v0.15.0-rc.1
v0.15.0-rc.0
v0.14.0
v0.14.0-rc.1
v0.14.0-rc.0
v0.13.0
v0.12.0
v0.12.0-rc.2
v0.12.0-rc.1
v0.12.0-rc.0
v0.11.1
v0.11.0
v0.11.0-rc.1
v0.11.0-rc.0
v0.10.1
v0.10.0
v0.10.0-rc.6
v0.10.0-rc.5
v0.10.0-rc.4
v0.10.0-rc.3
v0.10.0-rc.2
v0.10.0-rc.1
v0.10.0-rc.0
v0.9.1
v0.9.1-rc.0
v0.9.0
v0.9.0-rc.5
v0.9.0-rc.4
v0.9.0-rc.3
v0.9.0-rc.2
v0.9.0-rc.1
v0.9.0-rc.0
v0.8.2-rc.0
v0.8.1
v0.8.1-rc.0
v0.8.0
v0.8.0-rc.2
v0.8.0-rc.1
v0.8.0-rc.0
v0.7.0
v0.6.0
v0.6.0rc0
v0.6.0-rc.0
v0.6.0-rc0
v0.5.0
v0.4.0
v0.3.0
v0.2.1
v0.2.1-rc0
v0.2.0
v0.2.0-rc1
v0.2.0-rc0
v0.1.0
v0.1.0-rc2
v0.1.0-rc1
v0.1.0-rc0
v0.0.0
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
node.cpp
src/ngraph/node.cpp
+10
-0
node.hpp
src/ngraph/node.hpp
+2
-2
op.hpp
src/ngraph/op.hpp
+0
-1
parameter.hpp
src/ngraph/ops/parameter.hpp
+0
-1
No files found.
src/ngraph/node.cpp
View file @
c66a7469
...
...
@@ -29,6 +29,16 @@ ngraph::Node::Node(const std::vector<Node::ptr>& arguments, ValueType::ptr type)
}
}
bool
ngraph
::
Node
::
is_op
()
const
{
return
dynamic_cast
<
const
ngraph
::
Op
*>
(
this
)
!=
nullptr
;
}
bool
ngraph
::
Node
::
is_parameter
()
const
{
return
dynamic_cast
<
const
ngraph
::
Parameter
*>
(
this
)
!=
nullptr
;
}
std
::
ostream
&
ngraph
::
operator
<<
(
std
::
ostream
&
out
,
const
ngraph
::
Node
&
node
)
{
auto
op_tmp
=
dynamic_cast
<
const
ngraph
::
Op
*>
(
&
node
);
...
...
This diff is collapsed.
Click to expand it.
src/ngraph/node.hpp
View file @
c66a7469
...
...
@@ -67,8 +67,8 @@ namespace ngraph
return
typeid
(
*
this
)
==
typeid
(
*
node
.
get
());
}
virtual
bool
is_op
()
const
{
return
false
;
}
virtual
bool
is_parameter
()
const
{
return
false
;
}
bool
is_op
()
const
;
bool
is_parameter
()
const
;
size_t
instance_id
()
const
{
return
m_instance_id
;
}
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
,
const
Node
&
);
...
...
This diff is collapsed.
Click to expand it.
src/ngraph/op.hpp
View file @
c66a7469
...
...
@@ -76,7 +76,6 @@ namespace ngraph
virtual
std
::
string
op_class_name
()
const
=
0
;
virtual
std
::
string
node_id
()
const
override
;
virtual
bool
is_op
()
const
override
{
return
true
;
}
};
/**
...
...
This diff is collapsed.
Click to expand it.
src/ngraph/ops/parameter.hpp
View file @
c66a7469
...
...
@@ -42,7 +42,6 @@ namespace ngraph
std
::
string
description
()
const
override
{
return
"Parameter"
;
}
virtual
void
propagate_types
()
override
;
virtual
std
::
string
node_id
()
const
override
;
virtual
bool
is_parameter
()
const
override
{
return
true
;
}
protected
:
Function
*
m_function
;
...
...
This diff is collapsed.
Click to expand it.
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