Rate this Page

torch.fx.experimental.symbolic_shapes.guarding_hint_or_throw#

torch.fx.experimental.symbolic_shapes.guarding_hint_or_throw(a)[source]#

Return a concrete hint for a symbolic value, for use in guarding decisions.

Returns Python bool (True/False) for boolean inputs (SymBool, bool), and Python int for integer inputs (SymInt, int).

Return type:

int | bool