import torch.nn as nn class PyTorchMLP(nn.Module): def __init__(self): super().__init__() self.linear1 = nn.Linear(784, 128) self.linear2 = nn.Linear(128, 10) def forward(self, x): x = torch.relu(self.linear1(x)) return self.linear2(x) model = PyTorchMLP() output = model(input_data) # Parameters are hidden inside __ __