MCPcopy Create free account
hub / github.com/Kaggle/docker-python / __init__

Method __init__

tests/test_pytorch_lightning.py:13–16  ·  view source on GitHub ↗
(self, batch_size=16)

Source from the content-addressed store, hash-verified

11 def __init__(self, batch_size=16):
12 super().__init__()
13
14 self.batch_size = batch_size
15
16 def setup(self, stage=None):
17 X_train = torch.rand(100, 1, 28, 28)
18 y_train = torch.randint(0, 10, size=(100,))
19 X_valid = torch.rand(20, 1, 28, 28)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected