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

Function use_symbolic_shape

imperative/python/megengine/core/_trace_option.py:14–16  ·  view source on GitHub ↗

r"""Returns whether tensor.shape returns a tensor instead of a tuple

()

Source from the content-addressed store, hash-verified

12
13
14def use_symbolic_shape() -> bool:
15 r"""Returns whether tensor.shape returns a tensor instead of a tuple"""
16 return _use_symbolic_shape
17
18
19def set_symbolic_shape(option: bool):

Callers 7

override_symbolic_shapeFunction · 0.90
test_zero_dimFunction · 0.90
funcFunction · 0.90
test_convert_moduleFunction · 0.90
shapeMethod · 0.85
shapeMethod · 0.85
trace_moduleFunction · 0.85

Calls

no outgoing calls

Tested by 4

override_symbolic_shapeFunction · 0.72
test_zero_dimFunction · 0.72
funcFunction · 0.72
test_convert_moduleFunction · 0.72