torch.fx.experimental.symbolic_shapes.optimization_hint#
- torch.fx.experimental.symbolic_shapes.optimization_hint(a, fallback=None)[source]#
Return a concrete hint for a symbolic integer, for use in optimization decisions.
Unlike guarding_hint_or_throw, this function does not add guards and is intended for optimization purposes only (e.g., memory estimation).
- Return type: