Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kaggle/docker-python
/ __init__
Method
__init__
tests/test_pytorch_lightning.py:36–38 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
34
class
LitClassifier(pl.LightningModule):
35
36
def
__init__(self):
37
super().__init__()
38
self.l1 = torch.nn.Linear(28 * 28, 10)
39
40
def
forward(self, x):
41
return
F.relu(self.l1(x.view(x.size(0), -1)))
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected