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

Method _reset

imperative/python/megengine/utils/network_node.py:76–80  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

74 self._reset(var)
75
76 def _reset(self, other):
77 if not isinstance(other, Tensor):
78 other = VarNode(other)
79 super()._reset(other)
80 self.owner = None
81
82 def _reset_var(self, var):
83 origin_owner = self.owner

Callers 15

varMethod · 0.95
shuffleMethod · 0.45
fill_Function · 0.45
uniform_Function · 0.45
normal_Function · 0.45
convert_params_to_xlaMethod · 0.45
as_xla_arrayMethod · 0.45
executeMethod · 0.45
trace_without_hostMethod · 0.45
_check_non_finiteFunction · 0.45

Calls 1

VarNodeClass · 0.70

Tested by

no test coverage detected