asset-tagging/example.py

11 lines
201 B
Python
Raw Permalink Normal View History

2025-09-08 14:11:43 -04:00
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)