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

Function eval_shape_upper_bound

exir/sym_util.py:84–88  ·  view source on GitHub ↗
(shape: Iterable[Union[int, torch.SymInt]])

Source from the content-addressed store, hash-verified

82
83
84def eval_shape_upper_bound(shape: Iterable[Union[int, torch.SymInt]]) -> List[int]:
85 new_shape = []
86 for _, s in enumerate(shape):
87 new_shape.append(eval_upper_bound(s))
88 return new_shape
89
90
91def collect_free_symbols(

Callers 1

get_shapeFunction · 0.90

Calls 2

eval_upper_boundFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected