(self)
| 172 | |
| 173 | class ModuleMultipleEntry(torch.nn.Module): |
| 174 | def __init__(self): |
| 175 | super().__init__() |
| 176 | self.a = 3 * torch.ones(2, 2, dtype=torch.float) |
| 177 | self.b = 2 * torch.ones(2, 2, dtype=torch.float) |
| 178 | |
| 179 | def forward(self, x: torch.Tensor): |
| 180 | return x + self.a |