Skip to content

Commit

Permalink
Merge dd7a5c9 into 5314bab
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinecollas committed Feb 29, 2024
2 parents 5314bab + dd7a5c9 commit c981135
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
with:
fetch-depth: 0

- name: Set up python 3.7
- name: Set up python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
cache: pip
cache-dependency-path: pyproject.toml

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_release_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up python 3.7
- name: Set up python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
cache: pip
cache-dependency-path: pyproject.toml

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ authors = [
]
readme = "README.md"
license = {text = "BSD 3-Clause License"}
requires-python = ">=3.7"
requires-python = ">=3.8"
keywords = [
"manifolds",
"optimization",
Expand Down
2 changes: 1 addition & 1 deletion src/pymanopt/autodiff/backends/_jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
jax = None
else:
import jax.numpy as jnp
from jax.config import config
from jax import config

config.update("jax_enable_x64", True)

Expand Down
2 changes: 1 addition & 1 deletion src/pymanopt/autodiff/backends/_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def hessian_vector_product(*args):
for gradient, vector in zip(gradients, vectors):
dot_product += torch.tensordot(
gradient.conj(), vector, dims=gradient.ndim
)
).real
dot_product.backward()
return self._sanitize_gradients(arguments)

Expand Down

0 comments on commit c981135

Please sign in to comment.