11 lines
201 B
Python
11 lines
201 B
Python
import torch
|
|
import torch.nn as nn
|
|
|
|
class MyModel(nn.Module):
|
|
def __init__(self):
|
|
super().__init__()
|
|
self.fc = nn.Linear(10, 2)
|
|
|
|
def forward(self, x):
|
|
return self.fc(x)
|