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

Function _unwrap

imperative/python/megengine/core/tensor/megbrain_graph.py:554–559  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

552
553
554def _unwrap(x):
555 if isinstance(x, collections.abc.Sequence):
556 return type(x)(map(_unwrap, x))
557 if isinstance(x, VarNode):
558 return x._node
559 return x
560
561
562def apply_normal_varnode(op: OpDef, *args: VarNode):

Callers 13

_set_priority_to_idMethod · 0.85
compileMethod · 0.85
optimize_for_inferenceFunction · 0.85
dump_graphFunction · 0.85
apply_normal_varnodeFunction · 0.85
input_callbackFunction · 0.85
__init__Method · 0.85
output_callbackFunction · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected