Rate this Page

torch.is_storage#

torch.is_storage(obj,/)[source]#

Returns True ifobj is a PyTorch storage object.

Parameters

obj (Object) – Object to test

Return type

TypeIs[Union[TypedStorage,UntypedStorage]]