MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / process_name

Function process_name

imperative/python/megengine/tools/network_visualize.py:116–120  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

114 graph._compile()
115
116 def process_name(name):
117 # nodes that start with point or contain float const will lead to display bug
118 if not re.match(r"^[+-]?\d*\.\d*", name):
119 name = name.replace(".", "/")
120 return name.encode(encoding="utf-8")
121
122 summary = [["item", "value"]]
123 node_list = []

Callers 1

visualizeFunction · 0.85

Calls 3

matchMethod · 0.45
replaceMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected