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

Method __len__

intermediate_source/torchvision_tutorial.py:199–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

197 return img, target
198
199 def __len__(self):
200 return len(self.imgs)
201
202######################################################################
203# That’s all for the dataset. Now let’s define a model that can perform

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected