Storage
MapStorage
[number] self[index]
Returns or set the element at position index in the storage. Valid range of index is 1 to size().
index
size()
Example:
x = torch.DoubleStorage(10) print(x[5])