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

Method __iter__

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

Source from the content-addressed store, hash-verified

795 return len(self.dl)
796
797 def __iter__(self):
798 for b in self.dl:
799 yield (self.func(*b))
800
801train_dl, valid_dl = get_data(train_ds, valid_ds, bs)
802train_dl = WrappedDataLoader(train_dl, preprocess)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected