Rate this Page

torch.fx.experimental.symbolic_shapes.statically_known_false#

torch.fx.experimental.symbolic_shapes.statically_known_false(x)[source]#

Returns True if x can be simplified to a constant and is False. If x cannot be evaluated from static, we return False

Note

This function doesn’t introduce new guards, so the expression may end up evaluating to False at runtime even if this function returns False.

Parameters

x (bool, SymBool) – The expression to try statically evaluating

Return type

bool