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
86577af5
Commit
86577af5
authored
May 24, 2019
by
nishant.b.patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add serializer supoort (not tested)
parent
b4d6dfd4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
serializer.cpp
src/ngraph/serializer.cpp
+15
-3
No files found.
src/ngraph/serializer.cpp
View file @
86577af5
...
...
@@ -1299,14 +1299,24 @@ static shared_ptr<ngraph::Function>
auto
padding_below
=
node_js
.
at
(
"padding_below"
).
get
<
vector
<
std
::
ptrdiff_t
>>
();
auto
padding_above
=
node_js
.
at
(
"padding_above"
).
get
<
vector
<
std
::
ptrdiff_t
>>
();
auto
data_dilation_strides
=
node_js
[
"data_dilation_strides"
];
node
=
make_shared
<
op
::
Convolution
>
(
args
[
0
],
auto
output_type
=
read_element_type
(
node_js
.
at
(
"output_type"
));
auto
axes
=
node_js
.
at
(
"axes"
).
get
<
set
<
size_t
>>
();
node
=
make_shared
<
op
::
QuantizedConvolution
>
(
args
[
0
],
args
[
1
],
window_movement_strides
,
window_dilation_strides
,
padding_below
,
padding_above
,
data_dilation_strides
.
get
<
std
::
vector
<
size_t
>>
());
data_dilation_strides
.
get
<
std
::
vector
<
size_t
>>
(),
args
[
2
],
args
[
3
],
args
[
4
],
args
[
5
],
args
[
6
],
args
[
7
],
output_type
,
axes
);
break
;
}
case
OP_TYPEID
:
:
QuantizedDotBias
:
{
break
;
...
...
@@ -2116,6 +2126,8 @@ static json write(const Node& n, bool binary_constant_data)
node
[
"padding_below"
]
=
tmp
->
get_padding_below
();
node
[
"padding_above"
]
=
tmp
->
get_padding_above
();
node
[
"data_dilation_strides"
]
=
tmp
->
get_data_dilation_strides
();
node
[
"output_type"
]
=
write_element_type
(
tmp
->
get_element_type
());
node
[
"axes"
]
=
tmp
->
get_axes
();
break
;
}
case
OP_TYPEID
:
:
QuantizedDotBias
:
{
break
;
...
...
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