Shortcuts

torch.fx.experimental.symbolic_shapes.is_concrete_int

torch.fx.experimental.symbolic_shapes.is_concrete_int(a)[源代码]

用于检查 SymInt 中的底层对象是否为具体值的工具。如果传入的是整数,则也返回 true。

Parameters

a (SymIntint) – 要测试是否为整数的对象

Return type

bool

优云智算