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
5ec02d8e
Commit
5ec02d8e
authored
May 10, 2019
by
tsocha
Committed by
Scott Cyphers
May 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ONNX] Add support for negative axis attribute in Gather op. (#2902)
parent
a006b5c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
gather.hpp
src/ngraph/frontend/onnx_import/op/gather.hpp
+4
-0
No files found.
src/ngraph/frontend/onnx_import/op/gather.hpp
View file @
5ec02d8e
...
...
@@ -34,6 +34,10 @@ namespace ngraph
auto
data
=
ng_inputs
.
at
(
0
);
auto
indices
=
ng_inputs
.
at
(
1
);
auto
axis
=
node
.
get_attribute_value
<
int64_t
>
(
"axis"
,
0
);
if
(
axis
<
0
)
{
axis
+=
data
->
get_shape
().
size
();
}
return
{
std
::
make_shared
<
ngraph
::
op
::
Gather
>
(
data
,
indices
,
axis
)};
}
...
...
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