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
2b289df0
Commit
2b289df0
authored
Oct 04, 2018
by
Nick Korovaiko
Committed by
Robert Kimball
Oct 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show types in VisualizeTree (#1733)
* show types in visualize_tree * fix a warning * address Bob's feedback
parent
4c15371e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
visualize_tree.cpp
src/ngraph/pass/visualize_tree.cpp
+10
-1
No files found.
src/ngraph/pass/visualize_tree.cpp
View file @
2b289df0
...
...
@@ -103,7 +103,7 @@ std::string pass::VisualizeTree::get_attributes(shared_ptr<Node> node)
ss
<<
" label=
\"
"
<<
node
->
get_name
();
static
const
auto
nvtos
=
std
::
getenv
(
"NGRAPH_VISUALIZE_TREE_OUTPUT_SHAPES"
);
static
const
char
*
nvtos
=
std
::
getenv
(
"NGRAPH_VISUALIZE_TREE_OUTPUT_SHAPES"
);
if
(
nvtos
!=
nullptr
)
{
// The shapes of the Outputs of a multi-output op
...
...
@@ -112,6 +112,15 @@ std::string pass::VisualizeTree::get_attributes(shared_ptr<Node> node)
:
vector_to_string
(
node
->
get_shape
()));
}
static
const
char
*
nvtot
=
std
::
getenv
(
"NGRAPH_VISUALIZE_TREE_OUTPUT_TYPES"
);
if
(
nvtot
!=
nullptr
)
{
// The types of the Outputs of a multi-output op
// will be printed for its corresponding `GetOutputElement`s
ss
<<
" "
<<
((
node
->
get_outputs
().
size
()
!=
1
)
?
std
::
string
(
"[skipped]"
)
:
node
->
get_element_type
().
c_type_string
());
}
const
Node
&
n
=
*
node
;
auto
eh
=
m_ops_to_details
.
find
(
TI
(
n
));
if
(
eh
!=
m_ops_to_details
.
end
())
...
...
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