1import torch
2
3class TinyModel(torch.nn.Module):
4 def __init__(self):
5 super().__init__()
6 self.layer = torch.nn.Linear(10, 2)
7
8model = TinyModel()
9model.load_state_dict(torch.load('pytorch_model.bin'))
10created by Hermona.