def __str__(self): content = ' ' + '\n '.join(str(self[i]) for i in _range(len(self))) return content + '\n[{} of size {}]'.format(torch.typename(self), len(self))