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
fff591a3
Commit
fff591a3
authored
Apr 10, 2019
by
Sergey Shalnov
Committed by
Scott Cyphers
Apr 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IntelGPU backend: Code refactoring due to Node functions deprecated (#2734)
parent
62e2ae18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
node.cpp
src/ngraph/node.cpp
+10
-0
node.hpp
src/ngraph/node.hpp
+6
-0
intelgpu_backend.cpp
src/ngraph/runtime/intelgpu/intelgpu_backend.cpp
+0
-0
No files found.
src/ngraph/node.cpp
View file @
fff591a3
...
...
@@ -351,6 +351,11 @@ descriptor::Tensor& Node::get_output_tensor(size_t i) const
return
m_outputs
.
at
(
i
).
get_tensor
();
}
const
string
&
Node
::
get_output_tensor_name
(
size_t
i
)
const
{
return
m_outputs
.
at
(
i
).
get_tensor
().
get_name
();
}
descriptor
::
Tensor
&
Node
::
get_output_tensor
()
const
{
if
(
get_output_size
()
!=
1
)
...
...
@@ -380,6 +385,11 @@ const PartialShape& Node::get_input_partial_shape(size_t i) const
return
m_inputs
.
at
(
i
).
get_partial_shape
();
}
const
string
&
Node
::
get_input_tensor_name
(
size_t
i
)
const
{
return
m_inputs
.
at
(
i
).
get_tensor
().
get_name
();
}
bool
Node
::
has_same_type
(
std
::
shared_ptr
<
const
Node
>
node
)
const
{
if
(
get_output_size
()
!=
node
->
get_output_size
())
...
...
src/ngraph/node.hpp
View file @
fff591a3
...
...
@@ -236,6 +236,9 @@ namespace ngraph
/// Returns the tensor for output i
descriptor
::
Tensor
&
get_output_tensor
(
size_t
i
)
const
;
/// Returns the tensor name for output i
const
std
::
string
&
get_output_tensor_name
(
size_t
i
)
const
;
/// Checks that there is exactly one output and returns its tensor.
descriptor
::
Tensor
&
get_output_tensor
()
const
;
...
...
@@ -260,6 +263,9 @@ namespace ngraph
/// Returns the partial shape of input i
const
PartialShape
&
get_input_partial_shape
(
size_t
i
)
const
;
/// Returns the tensor name for input i
const
std
::
string
&
get_input_tensor_name
(
size_t
i
)
const
;
std
::
unordered_set
<
descriptor
::
Tensor
*>
liveness_new_list
;
std
::
unordered_set
<
descriptor
::
Tensor
*>
liveness_free_list
;
...
...
src/ngraph/runtime/intelgpu/intelgpu_backend.cpp
View file @
fff591a3
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