Skip to content

Commit

Permalink
[FIX] Flatten after einsum
Browse files Browse the repository at this point in the history
  • Loading branch information
f-dangel committed Apr 28, 2023
1 parent 6cd4466 commit 942af76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_diag_ggn.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _einsum_diag_ggn(
layer.dilation,
layer.groups,
)
return einsum(equation, *operands)
return einsum(equation, *operands).flatten(end_dim=1)


def _backpack_diag_ggn(
Expand Down

0 comments on commit 942af76

Please sign in to comment.