Skip to content

docs(implicit_diff): implicit differentiation integration #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Sep 22, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
14dbb31
docs: init implicit differentiation integration
Benjamin-eecs Sep 9, 2022
0d76585
fix: linear solve docs error remains
Benjamin-eecs Sep 9, 2022
a9cc777
feat(tutorials): add implicit differentiation
Benjamin-eecs Sep 10, 2022
672005a
fix(tutorials): update torchopt import
Benjamin-eecs Sep 11, 2022
6cdd1f0
docs: pass api docs
Benjamin-eecs Sep 11, 2022
9a261f9
docs: pass api docs
Benjamin-eecs Sep 11, 2022
e915753
docs: pass api docs
Benjamin-eecs Sep 11, 2022
d5564b7
fix(implicit): remove argument
JieRen98 Sep 11, 2022
a47beb0
docs: update `custom_root` docstring
XuehaiPan Sep 13, 2022
e4f512f
Merge branch 'main' into docs/implicit_gradient
XuehaiPan Sep 13, 2022
5cf9018
docs: update colab links
Benjamin-eecs Sep 15, 2022
37298d5
Merge branch 'main' into docs/implicit_gradient
Benjamin-eecs Sep 22, 2022
4c0b69b
Merge branch 'main' into docs/implicit_gradient
XuehaiPan Sep 22, 2022
ae89467
docs(implicit): update docstrings for `custom_root`
XuehaiPan Sep 22, 2022
4a36212
docs(CHANGELOG): update CHANGELOG.md
XuehaiPan Sep 22, 2022
623324b
docs(CHANGELOG): update CHANGELOG.md
XuehaiPan Sep 22, 2022
059fc79
docs(implicit): update tutorial
XuehaiPan Sep 22, 2022
84e06b2
docs(implicit): update docstrings
XuehaiPan Sep 22, 2022
df764cf
docs(README): update future plan
XuehaiPan Sep 22, 2022
8b6a945
chore: update gitignore
Benjamin-eecs Sep 22, 2022
a043f7b
chore: update makefile
Benjamin-eecs Sep 22, 2022
956a780
docs: update dictionary
XuehaiPan Sep 22, 2022
504d699
Merge branch 'main' into docs/implicit_gradient
XuehaiPan Sep 22, 2022
d881334
docs(implicit): update docstrings
XuehaiPan Sep 22, 2022
37ea557
fix(implicit): fix has_aux when result is single tensor
XuehaiPan Sep 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs(implicit): update docstrings
  • Loading branch information
XuehaiPan committed Sep 22, 2022
commit 84e06b29666eeaaaf2cc1c06ad19336010961d71
11 changes: 5 additions & 6 deletions torchopt/_src/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,12 @@ def cg(

Args:
A: (tensor or tree of tensors or function)
2D array or function that calculates the linear map (matrix-vector
product) ``Ax`` when called like ``A(x)``. ``A`` must represent a
Hermitian, positive definite matrix, and must return array(s) with the
same structure and shape as its argument.
2D array or function that calculates the linear map (matrix-vector product) ``Ax`` when
called like ``A(x)``. ``A`` must represent a Hermitian, positive definite matrix, and
must return array(s) with the same structure and shape as its argument.
b: (tensor or tree of tensors)
Right hand side of the linear system representing a single vector. Can be
stored as an array or Python container of array(s) with any shape.
Right hand side of the linear system representing a single vector. Can be stored as an
array or Python container of array(s) with any shape.
x0: (tensor or tree of tensors, optional)
Starting guess for the solution. Must have the same structure as ``b``.
rtol: (float, optional, default: :const:`1e-5`)
Expand Down
4 changes: 2 additions & 2 deletions torchopt/_src/linear_solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def _solve_normal_cg(
) -> TensorTree:
"""Solves the normal equation ``A^T A x = A^T b`` using conjugate gradient.

This can be used to solve Ax=b using conjugate gradient when A is not
Hermitian, positive definite.
This can be used to solve ``A x = b`` using conjugate gradient when ``A`` is not Hermitian,
positive definite.

Args:
matvec: product between ``A`` and a vector.
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy