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
29dd3e3f
Commit
29dd3e3f
authored
Mar 23, 2019
by
Junfeng Dong
Committed by
Robert Kimball
Mar 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix visualize tracing file name on Windows. (#2643)
parent
3f8f3ab4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
manager.hpp
src/ngraph/pass/manager.hpp
+9
-0
No files found.
src/ngraph/pass/manager.hpp
View file @
29dd3e3f
...
...
@@ -51,7 +51,16 @@ public:
m_pass_list
.
push_back
(
pass_base
);
if
(
m_visualize
||
m_serialize
)
{
#ifdef _WIN32
/* MSVC produce a human-readable type name like class ngraph::pass::LikeReplacement
* by typeid(T).name(). Later ofstream doesn't accept it as a valid file name.
*/
std
::
string
str
=
typeid
(
T
).
name
();
auto
pos
=
str
.
find_last_of
(
":"
);
m_pass_names
.
push_back
(
str
.
substr
(
pos
+
1
));
#elif defined(__linux) || defined(__APPLE__)
m_pass_names
.
push_back
(
typeid
(
T
).
name
());
#endif
}
}
...
...
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