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

Method _set_var_name

imperative/python/megengine/utils/network.py:224–227  ·  view source on GitHub ↗
(var)

Source from the content-addressed store, hash-verified

222 ), "forward compatibility for older version only works when dump_format is FBS"
223
224 def _set_var_name(var):
225 graph_var = G.VarNode(var.var)
226 graph_var.name = var.name
227 return graph_var
228
229 self._compile()
230 out = list(map(_set_var_name, self.output_vars))

Callers

nothing calls this directly

Calls 1

VarNodeMethod · 0.80

Tested by

no test coverage detected