| 122 | |
| 123 | |
| 124 | class TorchLinearActivation(nn.Module): |
| 125 | def __init__(self): |
| 126 | super(TorchLinearActivation, self).__init__() |
| 127 | pass |
| 128 | |
| 129 | @staticmethod |
| 130 | def forward(input): |
| 131 | return input |
| 132 | |
| 133 | @staticmethod |
| 134 | def backward(grad_output): |
| 135 | return torch.ones_like(grad_output) |
| 136 | |
| 137 | |
| 138 | class TorchBatchNormLayer(nn.Module): |
no outgoing calls