MCPcopy Create free account
hub / github.com/pytorch/tutorials / __len__

Method __len__

beginner_source/blitz/data_parallel_tutorial.py:79–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 return self.data[index]
78
79 def __len__(self):
80 return self.len
81
82rand_loader = DataLoader(dataset=RandomDataset(input_size, data_size),
83 batch_size=batch_size, shuffle=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected