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
cf713136
Commit
cf713136
authored
Feb 11, 2020
by
mbencer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use split v1 builder in all onnx ops
parent
54b9d9aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
lp_pool.cpp
src/ngraph/frontend/onnx_import/op/lp_pool.cpp
+2
-1
lstm.cpp
src/ngraph/frontend/onnx_import/op/lstm.cpp
+1
-1
pad.cpp
src/ngraph/frontend/onnx_import/op/pad.cpp
+1
-1
No files found.
src/ngraph/frontend/onnx_import/op/lp_pool.cpp
View file @
cf713136
...
...
@@ -45,7 +45,8 @@ namespace ngraph
ASSERT_VALID_ARGUMENT
(
node
,
p_norm
>=
0
)
<<
"Only positive (including zero) values are supported for 'p' attribute."
;
NodeVector
slices
=
ngraph
::
builder
::
split
(
data
,
channels_count
,
channel_axis
);
NodeVector
slices
=
ngraph
::
builder
::
opset1
::
split
(
data
,
channels_count
,
channel_axis
);
for
(
auto
&
slice
:
slices
)
{
...
...
src/ngraph/frontend/onnx_import/op/lstm.cpp
View file @
cf713136
...
...
@@ -91,7 +91,7 @@ namespace ngraph
if
(
ng_inputs
.
size
()
>
3
&&
!
ng_inputs
.
at
(
3
)
->
is_null
())
{
auto
bias
=
ng_inputs
.
at
(
3
);
auto
split_bias
=
builder
::
split
(
bias
,
2
,
1
);
auto
split_bias
=
builder
::
opset1
::
split
(
bias
,
2
,
1
);
m_map
[
LSTMInput
::
LSTM_INPUT_B
]
=
split_bias
.
at
(
0
)
+
split_bias
.
at
(
1
);
}
else
...
...
src/ngraph/frontend/onnx_import/op/pad.cpp
View file @
cf713136
...
...
@@ -129,7 +129,7 @@ namespace ngraph
{
auto
axis
=
default_opset
::
Constant
::
create
(
element
::
i64
,
ngraph
::
Shape
{},
{
0
});
NodeVector
padding
=
builder
::
split
(
pads
,
2
,
0
);
NodeVector
padding
=
builder
::
opset1
::
split
(
pads
,
2
,
0
);
padding_begin
=
std
::
make_shared
<
default_opset
::
Convert
>
(
padding
.
at
(
0
),
element
::
i64
);
...
...
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