torch.is_storage¶
- torch.is_storage(obj, /)[source]¶
Returns True if obj is a PyTorch storage object.
- Parameters
obj (Object) – Object to test
- Return type
typing_extensions.TypeGuard[Union[TypedStorage, UntypedStorage]]
Returns True if obj is a PyTorch storage object.
obj (Object) – Object to test
typing_extensions.TypeGuard[Union[TypedStorage, UntypedStorage]]