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
fb7e61da
Commit
fb7e61da
authored
Mar 12, 2019
by
Sergey Shalnov
Committed by
Robert Kimball
Mar 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IntelGPU backend: Relu operation fix with int32_t (#2596)
parent
8095c8ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
intelgpu_backend.cpp
src/ngraph/runtime/intelgpu/intelgpu_backend.cpp
+8
-3
No files found.
src/ngraph/runtime/intelgpu/intelgpu_backend.cpp
View file @
fb7e61da
...
...
@@ -1227,9 +1227,14 @@ shared_ptr<runtime::Executable>
}
case
OP_TYPEID
:
:
Relu
:
{
const
string
zero_const
=
"convert_"
+
get_opencl_type_name
(
get_output_type
(
op
))
+
"(0)"
;
do_universal_unary
(
topology
,
op
,
"max("
+
zero_const
+
", input_var)"
,
activation_relu
);
const
string
output_type_name
=
get_opencl_type_name
(
get_output_type
(
op
));
const
string
convert_to_type
=
"convert_"
+
output_type_name
;
const
string
zero_const
=
convert_to_type
+
"(0)"
;
do_universal_unary
(
topology
,
op
,
"max("
+
zero_const
+
", "
+
convert_to_type
+
"(input_var))"
,
activation_relu
);
break
;
}
case
OP_TYPEID
:
:
Sigmoid
:
...
...
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