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

Method __init__

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

Source from the content-addressed store, hash-verified

250 """
251
252 def __init__(self, output_size):
253 assert isinstance(output_size, (int, tuple))
254 if isinstance(output_size, int):
255 self.output_size = (output_size, output_size)
256 else:
257 assert len(output_size) == 2
258 self.output_size = output_size
259
260 def __call__(self, sample):
261 image, landmarks = sample['image'], sample['landmarks']

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected