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