MCPcopy Create free account
hub / github.com/TingsongYu/PyTorch_Tutorial / __len__

Method __len__

Code/utils/utils.py:69–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 return img, label
68
69 def __len__(self):
70 return len(self.imgs)
71
72
73def validate(net, data_loader, set_name, classes_name):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected