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

Method __len__

beginner_source/nn_tutorial.py:794–795  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

792 self.func = func
793
794 def __len__(self):
795 return len(self.dl)
796
797 def __iter__(self):
798 for b in self.dl:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected