Skip to content

Commit

Permalink
Fix black
Browse files Browse the repository at this point in the history
  • Loading branch information
runame committed Nov 7, 2023
1 parent b67adc0 commit e4e6b75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions curvlinops/kfac.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,12 @@ def _compute_kfac(self):

def _compute_loss_and_backward(self, output: Tensor, y: Tensor):
"""Compute the loss and the backward pass(es) required for KFAC.
Args:
output: The model's prediction
:math:`\{f_\mathbf{\theta}(\mathbf{x}_n)\}_{n=1}^N`.
y: The labels :math:`\{\mathbf{y}_n\}_{n=1}^N`.
Raises:
NotImplementedError: If ``fisher_type == 'type-2'`` and
``isinstance(self._loss_func, CrossEntropyLoss)``.
Expand Down

0 comments on commit e4e6b75

Please sign in to comment.