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
ec90481e
Commit
ec90481e
authored
Sep 21, 2018
by
tsocha
Committed by
Artur Wojcik
Sep 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ONNX] Fix bugs in unsqueeze and pooling ops (#1644)
* Unsqueeze Fix * Pooling fix
parent
02fad9e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
unsqueeze.cpp
src/ngraph/frontend/onnx_import/op/unsqueeze.cpp
+1
-1
convpool.hpp
src/ngraph/frontend/onnx_import/utils/convpool.hpp
+2
-2
No files found.
src/ngraph/frontend/onnx_import/op/unsqueeze.cpp
View file @
ec90481e
...
...
@@ -37,7 +37,7 @@ namespace ngraph
ASSERT_VALID_ARGUMENT
(
node
,
!
axes
.
empty
())
<<
"'axes' attribute is mandatory."
;
std
::
sort
(
std
::
begin
(
axes
),
std
::
end
(
axes
),
std
::
greater
<
int64_t
>
());
std
::
sort
(
std
::
begin
(
axes
),
std
::
end
(
axes
),
std
::
less
<
int64_t
>
());
AxisVector
input_order
{
reshape
::
get_default_axis_vector
(
data_shape
.
size
())};
...
...
src/ngraph/frontend/onnx_import/utils/convpool.hpp
View file @
ec90481e
...
...
@@ -104,8 +104,8 @@ namespace ngraph
auto
paddings
=
convpool
::
get_pads
(
node
);
// Convert padding from CoordinateDiff to Shape objects
const
CoordinateDiff
&
padding_
below
{
paddings
.
first
};
const
CoordinateDiff
&
padding_
above
{
paddings
.
second
};
const
CoordinateDiff
&
padding_
above
{
paddings
.
first
};
const
CoordinateDiff
&
padding_
below
{
paddings
.
second
};
Shape
padding_below_shape
{
std
::
begin
(
padding_below
),
std
::
end
(
padding_below
)};
Shape
padding_above_shape
{
std
::
begin
(
padding_above
),
std
::
end
(
padding_above
)};
...
...
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