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
edb1375a
Commit
edb1375a
authored
Jun 04, 2018
by
Nick Korovaiko
Committed by
Robert Kimball
Jun 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove exception workflow (#1076)
parent
eef750df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
serializer.cpp
src/ngraph/serializer.cpp
+1
-10
No files found.
src/ngraph/serializer.cpp
View file @
edb1375a
...
@@ -96,16 +96,7 @@ using const_data_callback_t = shared_ptr<Node>(const string&, const element::Typ
...
@@ -96,16 +96,7 @@ using const_data_callback_t = shared_ptr<Node>(const string&, const element::Typ
template
<
typename
T
>
template
<
typename
T
>
T
get_or_default
(
nlohmann
::
json
&
j
,
const
std
::
string
&
key
,
const
T
&
default_value
)
T
get_or_default
(
nlohmann
::
json
&
j
,
const
std
::
string
&
key
,
const
T
&
default_value
)
{
{
T
rc
;
return
j
.
count
(
key
)
!=
0
?
j
.
at
(
key
).
get
<
T
>
()
:
default_value
;
try
{
rc
=
j
.
at
(
key
).
get
<
T
>
();
}
catch
(...)
{
rc
=
default_value
;
}
return
rc
;
}
}
static
std
::
shared_ptr
<
ngraph
::
Function
>
static
std
::
shared_ptr
<
ngraph
::
Function
>
...
...
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