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
b5beac87
Commit
b5beac87
authored
Oct 31, 2018
by
Sergey Shalnov
Committed by
Robert Kimball
Oct 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IntelGPU backend: Remove nodes "Result" from cldnn::topology (#1952)
parent
92c1cc19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
intelgpu_backend.cpp
src/ngraph/runtime/intelgpu/intelgpu_backend.cpp
+8
-2
No files found.
src/ngraph/runtime/intelgpu/intelgpu_backend.cpp
View file @
b5beac87
...
...
@@ -375,6 +375,7 @@ bool runtime::intelgpu::IntelGPUBackend::compile(shared_ptr<Function> func)
return
true
;
}
vector
<
cldnn
::
primitive_id
>
function_output_names
;
cldnn
::
topology
topology
;
if
(
m_dump_graph_enable
)
...
...
@@ -428,7 +429,7 @@ bool runtime::intelgpu::IntelGPUBackend::compile(shared_ptr<Function> func)
{
arguments_check
(
op
,
1
,
1
);
do_equal_propagation
(
topology
,
get_input_name
(
op
),
get_out
put_name
(
op
));
function_output_names
.
push_back
(
get_in
put_name
(
op
));
break
;
}
case
OP_TYPEID
:
:
GetOutputElement
:
...
...
@@ -1519,6 +1520,11 @@ bool runtime::intelgpu::IntelGPUBackend::compile(shared_ptr<Function> func)
network_build_options
.
set_option
(
cldnn
::
build_option
::
optimize_data
(
m_cldnn_graph_optimize
));
if
(
!
function_output_names
.
empty
())
{
network_build_options
.
set_option
(
cldnn
::
build_option
::
outputs
(
function_output_names
));
}
if
(
m_cldnn_dump_enable
)
{
network_build_options
.
set_option
(
cldnn
::
build_option
::
graph_dumps_dir
(
m_cldnn_dump_dir
));
...
...
@@ -1587,7 +1593,7 @@ bool runtime::intelgpu::IntelGPUBackend::call(shared_ptr<Function> func,
{
shared_ptr
<
runtime
::
intelgpu
::
IntelGPUTensorView
>
ngraph_res
=
static_pointer_cast
<
runtime
::
intelgpu
::
IntelGPUTensorView
>
(
outputs
[
i
]);
const
string
&
tensor_name
=
func
->
get_output_op
(
i
)
->
get_output_tensor
().
get_name
(
);
const
string
&
tensor_name
=
get_input_name
(
func
->
get_output_op
(
i
)
);
auto
result_memory
=
result
.
at
(
tensor_name
).
get_memory
().
pointer
<
char
>
();
ngraph_res
->
write
(
result_memory
.
data
(),
0
,
result_memory
.
size
());
...
...
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