mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
9 lines
265 B
Python
9 lines
265 B
Python
class RealStorage(C.RealStorageBase):
|
|
def __str__(self):
|
|
content = ' ' + '\n '.join(str(self[i]) for i in range(len(self)))
|
|
return content + '\n[torch.RealStorage of size {}]'.format(len(self))
|
|
|
|
def __repr__(self):
|
|
return str(self)
|
|
|