torch.is_storage#
- torch.is_storage(obj, /)[原始碼]#
如果 obj 是一個 PyTorch storage 物件,則返回 True。
- 引數
obj (Object) – 要測試的物件
- 返回型別
TypeIs[Union[TypedStorage, UntypedStorage]]
如果 obj 是一個 PyTorch storage 物件,則返回 True。
obj (Object) – 要測試的物件
TypeIs[Union[TypedStorage, UntypedStorage]]