Skip to content

Commit

Permalink
Fall back to old typing and ignore star imports for asdfghjkl_src
Browse files Browse the repository at this point in the history
  • Loading branch information
aleximmer committed Sep 1, 2024
1 parent 74b3cc7 commit 10a9c8e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions laplace/curvature/asdfghjkl_src/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from .core import extend
from .fisher import *
from .gradient import *
from .hessian import *
from .kernel import *
from .matrices import *
from .mvp import *
from .operations import *
from .symmatrix import *
from .utils import *
from .fisher import * # noqa: F403
from .gradient import * # noqa: F403
from .hessian import * # noqa: F403
from .kernel import * # noqa: F403
from .matrices import * # noqa: F403
from .mvp import * # noqa: F403
from .operations import * # noqa: F403
from .symmatrix import * # noqa: F403
from .utils import * # noqa: F403
2 changes: 1 addition & 1 deletion laplace/curvature/asdfghjkl_src/mvp.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _group_product(xs, ys):
return sum([torch.sum(x * y) for (x, y) in zip(xs, ys)])


def _group_add(xs, ys, alpha: float | torch.Tensor=1.):
def _group_add(xs, ys, alpha=1.):
return [x.add(y.mul(alpha)) for x, y in zip(xs, ys)]


Expand Down

0 comments on commit 10a9c8e

Please sign in to comment.