We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d66066b commit 6ae0838Copy full SHA for 6ae0838
visualdl/component/graph/graph_component.py
@@ -14,6 +14,7 @@
14
# =======================================================================
15
import collections
16
import os.path
17
+import pathlib
18
import re
19
20
_graph_version = '1.0.0'
@@ -108,6 +109,8 @@ def _construct_edge(src_node, dst_node):
108
109
all_edges[(src_node, dst_node)]['vars'].add(var_name)
110
else:
111
common_ancestor = os.path.commonpath([src_node, dst_node])
112
+ common_ancestor = pathlib.Path(common_ancestor).as_posix(
113
+ ) # in windows, os.path.commonpath will return windows path, we should convert it to posix
114
src_base_node = src_node
115
while True:
116
parent_node = all_ops[src_base_node]['parent_node']
0 commit comments