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
6d9bc696
Commit
6d9bc696
authored
Feb 27, 2019
by
Sergey Shalnov
Committed by
Scott Cyphers
Feb 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IntelGPU backend: Concat operation fix (#2506)
parent
84167659
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
intelgpu_backend.cpp
src/ngraph/runtime/intelgpu/intelgpu_backend.cpp
+9
-2
backend_test.in.cpp
test/backend_test.in.cpp
+17
-0
No files found.
src/ngraph/runtime/intelgpu/intelgpu_backend.cpp
View file @
6d9bc696
...
...
@@ -609,8 +609,15 @@ shared_ptr<runtime::Executable>
}
}
const
cldnn
::
concatenation
cldnn_concat
(
get_output_name
(
op
),
inputs
,
cldnn_axis
);
topology
.
add
(
cldnn_concat
);
if
(
inputs
.
empty
())
{
do_equal_propagation
(
topology
,
get_input_name
(
op
),
get_output_name
(
op
));
}
else
{
const
cldnn
::
concatenation
cldnn_concat
(
get_output_name
(
op
),
inputs
,
cldnn_axis
);
topology
.
add
(
cldnn_concat
);
}
break
;
}
case
OP_TYPEID
:
:
Softmax
:
...
...
test/backend_test.in.cpp
View file @
6d9bc696
...
...
@@ -1204,6 +1204,23 @@ NGRAPH_TEST(${BACKEND_NAME}, concat_zero_length_1d_middle)
EXPECT_EQ
((
vector
<
float
>
{
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
}),
read_vector
<
float
>
(
result
));
}
NGRAPH_TEST
(
$
{
BACKEND_NAME
},
concat_zero_zero
)
{
Shape
shape
{
0
};
auto
constant_1
=
op
::
Constant
::
create
(
element
::
f32
,
shape
,
{
1
});
auto
concat_1
=
make_shared
<
op
::
Concat
>
(
NodeVector
{
constant_1
,
constant_1
},
0
);
auto
f
=
make_shared
<
Function
>
(
concat_1
,
ParameterVector
{});
auto
backend
=
runtime
::
Backend
::
create
(
"${BACKEND_NAME}"
);
auto
result
=
backend
->
create_tensor
(
element
::
f32
,
shape
);
auto
handle
=
backend
->
compile
(
f
);
handle
->
call_with_validate
({
result
},
{});
EXPECT_EQ
(
vector
<
float
>
{},
read_vector
<
float
>
(
result
));
}
NGRAPH_TEST
(
$
{
BACKEND_NAME
},
concat_zero_length_4d_middle
)
{
Shape
shape_a
{
2
,
2
,
1
,
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