快捷方式

torch.fx.experimental.symbolic_shapes.is_concrete_int

torch.fx.experimental.symbolic_shapes.is_concrete_int(a)[原始碼][原始碼]

用於檢查 SymInt 中底層物件是否為具體值的實用工具。如果傳入整數,也返回 True。

引數

a (SymIntint) – 要測試是否為整數的物件

返回型別

bool

文件

訪問 PyTorch 的全面開發者文件

檢視文件

教程

獲取針對初學者和高階開發者的深入教程

檢視教程

資源

查詢開發資源並獲得問題解答

檢視資源