[NFC] Export `jacobian_default_mode` (#1473)
Move and renames the internal `chose_qgt` from the qgt module to `nk.jax.jacobian_default_mode`, and properly documents it. It turns out it's useful to implement NTK and other objects, and GPSKet uses it as well, so let's make it public API together with Jacobian.. This changes nothing, simply moves a function (adds a deprecation warning for the internal function in case anybody uses this function) and adds more extensive docstrings.
Showing
- docs/api/jax.md 1 addition, 0 deletionsdocs/api/jax.md
- netket/jax/__init__.py 1 addition, 1 deletionnetket/jax/__init__.py
- netket/jax/_jacobian/__init__.py 1 addition, 0 deletionsnetket/jax/_jacobian/__init__.py
- netket/jax/_jacobian/default_mode.py 155 additions, 0 deletionsnetket/jax/_jacobian/default_mode.py
- netket/optimizer/qgt/qgt_jacobian_common.py 12 additions, 97 deletionsnetket/optimizer/qgt/qgt_jacobian_common.py
- netket/optimizer/qgt/qgt_jacobian_dense.py 1 addition, 2 deletionsnetket/optimizer/qgt/qgt_jacobian_dense.py
- netket/optimizer/qgt/qgt_jacobian_pytree.py 1 addition, 2 deletionsnetket/optimizer/qgt/qgt_jacobian_pytree.py
Loading
Please register or sign in to comment