class Mnist_Logistic([nn.Module](https://docs.pytorch.org/docs/stable/generated/torch.nn.Module.html#torch.nn.Module "torch.nn.Module")): def __init__(self): super().__init__() self.lin = [nn.Linear](https://docs.pytorch.org/docs/stable/generated/torch.nn.Linear.html#torch.nn.Linear "torch.nn.Linear")(784, 10) def forward(self, [xb](https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor "torch.Tensor")): return self.lin([xb](https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor "torch.Tensor"))