Caffe2 - Python API
A deep learning, cross platform ML framework
Public Member Functions | Static Public Attributes | List of all members
torch.storage._StorageBase Class Reference
Inheritance diagram for torch.storage._StorageBase:

Public Member Functions

def __str__ (self)
 
def __repr__ (self)
 
def __iter__ (self)
 
def __copy__ (self)
 
def __deepcopy__ (self, memo)
 
def __reduce__ (self)
 
def __sizeof__ (self)
 
def clone (self)
 
def tolist (self)
 
def cpu (self)
 
def double (self)
 
def float (self)
 
def half (self)
 
def long (self)
 
def int (self)
 
def short (self)
 
def char (self)
 
def byte (self)
 
def bool (self)
 
def pin_memory (self)
 
def share_memory_ (self)
 

Static Public Attributes

 is_cuda
 
 is_sparse
 

Detailed Description

Definition at line 7 of file storage.py.

Member Function Documentation

def torch.storage._StorageBase.bool (   self)
Casts this storage to bool type

Definition at line 86 of file storage.py.

def torch.storage._StorageBase.byte (   self)
Casts this storage to byte type

Definition at line 82 of file storage.py.

def torch.storage._StorageBase.char (   self)
Casts this storage to char type

Definition at line 78 of file storage.py.

def torch.storage._StorageBase.clone (   self)
Returns a copy of this storage

Definition at line 40 of file storage.py.

def torch.storage._StorageBase.cpu (   self)
Returns a CPU copy of this storage if it's not already on the CPU

Definition at line 50 of file storage.py.

def torch.storage._StorageBase.double (   self)
Casts this storage to double type

Definition at line 54 of file storage.py.

def torch.storage._StorageBase.float (   self)
Casts this storage to float type

Definition at line 58 of file storage.py.

def torch.storage._StorageBase.half (   self)
Casts this storage to half type

Definition at line 62 of file storage.py.

def torch.storage._StorageBase.int (   self)
Casts this storage to int type

Definition at line 70 of file storage.py.

def torch.storage._StorageBase.long (   self)
Casts this storage to long type

Definition at line 66 of file storage.py.

def torch.storage._StorageBase.pin_memory (   self)
Copies the storage to pinned memory, if it's not already pinned.

Definition at line 90 of file storage.py.

def torch.storage._StorageBase.share_memory_ (   self)
Moves the storage to shared memory.

This is a no-op for storages already in shared memory and for CUDA
storages, which do not need to be moved for sharing across processes.
Storages in shared memory cannot be resized.

Returns: self

Definition at line 99 of file storage.py.

def torch.storage._StorageBase.short (   self)
Casts this storage to short type

Definition at line 74 of file storage.py.

def torch.storage._StorageBase.tolist (   self)
Returns a list containing the elements of this storage

Definition at line 46 of file storage.py.


The documentation for this class was generated from the following file: