Shortcuts

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]]

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources