Returns or set the element at position index in the storage. Valid range of index is 1 to size().

Example:

x = torch.DoubleStorage(10)
print(x[5])