(self)
| 144 | |
| 145 | class ModuleAddMul(torch.nn.Module): |
| 146 | def __init__(self): |
| 147 | super().__init__() |
| 148 | self.a = 3 * torch.ones(2, 2, dtype=torch.float) |
| 149 | self.b = 2 * torch.ones(2, 2, dtype=torch.float) |
| 150 | |
| 151 | def forward(self, x: torch.Tensor): |
| 152 | out_1 = torch.mul(self.a, x) |