Rate this Page
โ˜… โ˜… โ˜… โ˜… โ˜…

torch.fx.experimental.symbolic_shapes.has_static_value#

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

User-code friendly utility to check if a value is static or dynamic. Returns true if given a constant, or a symbolic expression with a fixed value.

Parameters

a (Union[SymBool, SymFloat, SymInt, bool, float, int]) โ€“ Object to test

Return type

bool