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
31e2765a
Commit
31e2765a
authored
Nov 10, 2018
by
Nick Korovaiko
Committed by
Robert Kimball
Nov 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
catch exceptions for convert_layout for visualize_tree (#2037)
parent
3f561f5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
cpu_visualize_tree.cpp
src/ngraph/runtime/cpu/cpu_visualize_tree.cpp
+3
-15
No files found.
src/ngraph/runtime/cpu/cpu_visualize_tree.cpp
View file @
31e2765a
...
...
@@ -27,19 +27,7 @@ using namespace std;
#define TI(x) std::type_index(typeid(x))
static
void
visualize_convert_layout
(
const
Node
&
node
,
ostream
&
ss
)
{
auto
input_desc
=
runtime
::
cpu
::
mkldnn_utils
::
get_input_mkldnn_md
(
&
node
,
0
);
auto
result_desc
=
runtime
::
cpu
::
mkldnn_utils
::
get_output_mkldnn_md
(
&
node
,
0
);
ss
<<
"in="
<<
runtime
::
cpu
::
mkldnn_utils
::
get_mkldnn_format_string
(
static_cast
<
mkldnn
::
memory
::
format
>
(
input_desc
.
data
.
format
));
ss
<<
" out="
<<
runtime
::
cpu
::
mkldnn_utils
::
get_mkldnn_format_string
(
static_cast
<
mkldnn
::
memory
::
format
>
(
result_desc
.
data
.
format
));
ss
<<
" "
;
}
static
void
visualize_reshape
(
const
Node
&
node
,
ostream
&
ss
)
static
void
visualize_layout_format
(
const
Node
&
node
,
ostream
&
ss
)
{
try
{
...
...
@@ -80,8 +68,8 @@ namespace ngraph
const
visualize_tree_ops_map_t
&
get_visualize_tree_ops_map
()
{
const
static
visualize_tree_ops_map_t
vtom
{
{
TI
(
runtime
::
cpu
::
op
::
ConvertLayout
),
visualize_
convert_layou
t
},
{
TI
(
ngraph
::
op
::
Reshape
),
visualize_
reshape
}};
{
TI
(
runtime
::
cpu
::
op
::
ConvertLayout
),
visualize_
layout_forma
t
},
{
TI
(
ngraph
::
op
::
Reshape
),
visualize_
layout_format
}};
return
vtom
;
}
}
...
...
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