MCPcopy Create free account
hub / github.com/pytorch/executorch / _is_dynamic_shape_tensor

Function _is_dynamic_shape_tensor

exir/print_program.py:75–76  ·  view source on GitHub ↗
(tensor: Tensor)

Source from the content-addressed store, hash-verified

73
74
75def _is_dynamic_shape_tensor(tensor: Tensor) -> bool:
76 return tensor.shape_dynamism != TensorShapeDynamism.STATIC
77
78
79def _format_evalue( # noqa: C901

Callers 1

_format_evalueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected