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

11class LitDataModule(pl.LightningDataModule):
12
13 def __init__(self, batch_size=16):
14 super().__init__()
15
16 self.batch_size = batch_size
17
18 def setup(self, stage=None):
19 X_train = torch.rand(100, 1, 28, 28)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected