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

Function _wrap

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

Source from the content-addressed store, hash-verified

543
544
545def _wrap(x):
546 if isinstance(x, collections.abc.Sequence):
547 return type(x)(map(_wrap, x))
548 if hasattr(x.graph, "_wrap"):
549 return x.graph._wrap(x)
550 else:
551 return x
552
553
554def _unwrap(x):

Callers 4

optimize_for_inferenceFunction · 0.70
apply_normal_varnodeFunction · 0.70
input_callbackFunction · 0.70
output_callbackFunction · 0.70

Calls 1

_wrapMethod · 0.80

Tested by

no test coverage detected