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
2de35b04
Commit
2de35b04
authored
Apr 14, 2019
by
Sergey Shalnov
Committed by
Robert Kimball
Apr 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IntelGPU backend: Cconvolutions operations corner cases fix (#2749)
parent
5490bae5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
intelgpu_backend.cpp
src/ngraph/runtime/intelgpu/intelgpu_backend.cpp
+18
-8
No files found.
src/ngraph/runtime/intelgpu/intelgpu_backend.cpp
View file @
2de35b04
...
...
@@ -1600,8 +1600,8 @@ shared_ptr<runtime::Executable>
// clDNN has quite limited support for Convolution operation
// following are the checks to go with workaround
if
((
win_stride
.
size
()
>
2
)
||
(
pad_below
.
size
()
>
2
)
||
(
pad_above
.
size
()
>
2
)
||
(
win_dilation
.
size
()
>
2
)
||
(
data_dilation
.
size
()
>
2
)
||
if
((
win_stride
.
size
()
!=
2
)
||
(
pad_below
.
size
()
!=
2
)
||
(
pad_above
.
size
()
!=
2
)
||
(
win_dilation
.
size
()
!=
2
)
||
(
data_dilation
.
size
()
!=
2
)
||
(
data_dilation
.
at
(
0
)
!=
1
)
||
(
data_dilation
.
at
(
1
)
!=
1
)
||
(
op
->
get_output_element_type
(
0
)
!=
element
::
f32
))
{
...
...
@@ -1676,10 +1676,20 @@ shared_ptr<runtime::Executable>
const
Strides
&
win_dilation
=
conv_op
->
get_window_movement_strides_forward
();
const
Strides
&
data_dilation
=
conv_op
->
get_data_dilation_strides_forward
();
if
((
win_stride
.
size
()
>
2
)
||
(
win_stride
.
at
(
0
)
!=
1
)
||
(
win_stride
.
at
(
1
)
!=
1
)
||
(
pad_below
.
size
()
>
2
)
||
(
pad_above
.
size
()
>
2
)
||
(
data_dilation
.
size
()
>
2
)
||
// workaround to use custom kernel in case of filter output NxCx1x1
bool
proceed_with_custom_kernel
=
false
;
const
Shape
&
output_shape
=
op
->
get_output_shape
(
0
);
if
((
output_shape
.
size
()
==
4
)
&&
(
output_shape
.
at
(
2
)
==
1
)
&&
(
output_shape
.
at
(
3
)
==
1
))
{
proceed_with_custom_kernel
=
true
;
}
if
((
win_stride
.
size
()
!=
2
)
||
(
win_stride
.
at
(
0
)
!=
1
)
||
(
win_stride
.
at
(
1
)
!=
1
)
||
(
pad_below
.
size
()
!=
2
)
||
(
pad_above
.
size
()
!=
2
)
||
(
data_dilation
.
size
()
!=
2
)
||
(
data_dilation
.
at
(
0
)
!=
1
)
||
(
data_dilation
.
at
(
1
)
!=
1
)
||
(
win_dilation
.
size
()
>
2
)
||
(
op
->
get_output_element_type
(
0
)
!=
element
::
f32
))
(
win_dilation
.
size
()
!=
2
)
||
(
op
->
get_output_element_type
(
0
)
!=
element
::
f32
)
||
proceed_with_custom_kernel
)
{
do_convolution_operation
(
topology
,
op
->
get_input_tensor_name
(
0
),
...
...
@@ -1776,10 +1786,10 @@ shared_ptr<runtime::Executable>
const
Strides
&
win_dilation
=
conv_op
->
get_window_dilation_strides_forward
();
const
Strides
&
data_dilation
=
conv_op
->
get_window_movement_strides_forward
();
if
((
win_stride
.
size
()
>
2
)
||
(
win_stride
.
at
(
0
)
!=
1
)
||
(
win_stride
.
at
(
1
)
!=
1
)
||
(
pad_below
.
size
()
>
2
)
||
(
pad_above
.
size
()
>
2
)
||
(
data_dilation
.
size
()
>
2
)
||
if
((
win_stride
.
size
()
!=
2
)
||
(
win_stride
.
at
(
0
)
!=
1
)
||
(
win_stride
.
at
(
1
)
!=
1
)
||
(
pad_below
.
size
()
!=
2
)
||
(
pad_above
.
size
()
!=
2
)
||
(
data_dilation
.
size
()
!=
2
)
||
(
data_dilation
.
at
(
0
)
!=
1
)
||
(
data_dilation
.
at
(
1
)
!=
1
)
||
(
win_dilation
.
size
()
>
2
)
||
(
win_dilation
.
at
(
0
)
!=
1
)
||
(
win_dilation
.
size
()
!=
2
)
||
(
win_dilation
.
at
(
0
)
!=
1
)
||
(
win_dilation
.
at
(
1
)
!=
1
)
||
(
op
->
get_output_element_type
(
0
)
!=
element
::
f32
)
||
((
pad_below
.
at
(
0
)
==
pad_above
.
at
(
0
))
&&
(
pad_below
.
at
(
1
)
==
pad_above
.
at
(
1
))))
{
...
...
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