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

Method __init__

beginner_source/data_loading_tutorial.py:217–219  ·  view source on GitHub ↗
(self, output_size)

Source from the content-addressed store, hash-verified

215 """
216
217 def __init__(self, output_size):
218 assert isinstance(output_size, (int, tuple))
219 self.output_size = output_size
220
221 def __call__(self, sample):
222 image, landmarks = sample['image'], sample['landmarks']

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected