Starts the backward propagation given the loss value computed by a loss function. Args: loss (torch.Tensor): The loss value computed by a loss function.
(self, loss: torch.Tensor)
| 136 | self._model.eval() |
| 137 | |
| 138 | def backward(self, loss: torch.Tensor): |
| 139 | """ |
| 140 | Starts the backward propagation given the loss value computed by a loss function. |
| 141 | |
| 142 | Args: |
| 143 | loss (torch.Tensor): The loss value computed by a loss function. |
| 144 | """ |
| 145 | return self.optimizer.backward(loss) |
| 146 | |
| 147 | def backward_by_grad(self, tensor, grad): |
| 148 | """ |
no outgoing calls
no test coverage detected