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
2069823f
Unverified
Commit
2069823f
authored
May 10, 2019
by
Scott Cyphers
Committed by
GitHub
May 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate #2864 (#2901)
* Migrate #2864 * Remove extra changes
parent
8728d7cb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
manager.cpp
src/ngraph/pass/manager.cpp
+3
-4
visualize_tree.cpp
src/ngraph/pass/visualize_tree.cpp
+0
-0
No files found.
src/ngraph/pass/manager.cpp
View file @
2069823f
...
@@ -160,19 +160,18 @@ void pass::Manager::run_passes(shared_ptr<Function> func, bool transitive)
...
@@ -160,19 +160,18 @@ void pass::Manager::run_passes(shared_ptr<Function> func, bool transitive)
std
::
string
index_str
=
std
::
to_string
(
index
);
std
::
string
index_str
=
std
::
to_string
(
index
);
index_str
=
std
::
string
(
num_digits_in_pass_index
-
index_str
.
length
(),
'0'
)
+
index_str
;
index_str
=
std
::
string
(
num_digits_in_pass_index
-
index_str
.
length
(),
'0'
)
+
index_str
;
auto
base_filename
=
f_array
.
at
(
0
)
->
get_name
()
+
std
::
string
(
"_"
)
+
index_str
+
auto
base_filename
=
f_array
.
at
(
0
)
->
get_name
()
+
std
::
string
(
"_"
)
+
index_str
+
std
::
string
(
"_"
)
+
m_pass_names
.
at
(
index
)
+
std
::
string
(
"."
)
;
std
::
string
(
"_"
)
+
m_pass_names
.
at
(
index
);
if
(
m_visualize
)
if
(
m_visualize
)
{
{
pass
::
VisualizeTree
vt
(
base_filename
+
pass
::
VisualizeTree
::
get_file_ext
()
);
pass
::
VisualizeTree
vt
(
base_filename
);
vt
.
set_ops_to_details
(
get_state
().
get_visualize_tree_ops_map
());
vt
.
set_ops_to_details
(
get_state
().
get_visualize_tree_ops_map
());
vt
.
run_on_module
(
f_array
);
vt
.
run_on_module
(
f_array
);
}
}
if
(
m_serialize
)
if
(
m_serialize
)
{
{
// no "." in the extension
pass
::
Serialization
st
(
base_filename
+
".json"
);
pass
::
Serialization
st
(
base_filename
+
"json"
);
st
.
run_on_module
(
f_array
);
st
.
run_on_module
(
f_array
);
}
}
}
}
...
...
src/ngraph/pass/visualize_tree.cpp
View file @
2069823f
This diff is collapsed.
Click to expand it.
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