-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for matrix-matrix and matrix-vector products with `KFACLinearOp…
…erator` and `KFACInverseLinearOperator` without converting to numpy (#91) * Add tests for torch_matmat and torch_matvec * Add torch_matmat and torch_matvec methods to KFACLinearOperator * Nicer if-statement Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> * Fix doc string * Add tests for torch_matmat and torch_matvec for KFACInverseLinearOperator * Add torch_matmat and torch_matvec to KFACInverseLinearOperator * Increase test tolerance * Deduce torch_matmat return type from input type * Remove device check * Make constant explicit * Remove leftover import * Add support for list inputs to torch_matvec * Add tests for list inputs to torch_matmat and torch_matvec * Address review feedback * Switch to case for kfac tests and minor fixes * Fix flake8 --------- Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
- Loading branch information
1 parent
0c84391
commit 67e043f
Showing
4 changed files
with
391 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.