diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2023-10-30 15:40:49 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2023-10-30 15:40:49 +0100 |
| commit | 25ce86cd74f38d7c17d1d90a8271758959702f43 (patch) | |
| tree | 7480a486f5d54d62bdc8c36997c09d22c7d9beb9 | |
| parent | 3f96ea1c4256e14db2362a68dc49ca546bc6ba83 (diff) | |
python: Add python-optax.
* guix-science/packages/python.scm (python-optax): New variable.
| -rw-r--r-- | guix-science/packages/python.scm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/guix-science/packages/python.scm b/guix-science/packages/python.scm index cc85c02..df03161 100644 --- a/guix-science/packages/python.scm +++ b/guix-science/packages/python.scm | |||
| @@ -1997,3 +1997,33 @@ reliable JAX code. This includes utils to help: | |||
| 1997 | @end itemize | 1997 | @end itemize |
| 1998 | ") | 1998 | ") |
| 1999 | (license license:asl2.0))) | 1999 | (license license:asl2.0))) |
| 2000 | |||
| 2001 | (define-public python-optax | ||
| 2002 | (package | ||
| 2003 | (name "python-optax") | ||
| 2004 | ;; 0.1.6 needs a more recent numpy | ||
| 2005 | (version "0.1.5") | ||
| 2006 | (source | ||
| 2007 | (origin | ||
| 2008 | (method url-fetch) | ||
| 2009 | (uri (pypi-uri "optax" version)) | ||
| 2010 | (sha256 | ||
| 2011 | (base32 "0bhgaaxvqli3b2081zp9ycb2c2hqba0fcpigaqjxbnsidyspk8qa")))) | ||
| 2012 | (build-system pyproject-build-system) | ||
| 2013 | ;; Tests require haiku, tensorflow, and flax, but flax needs | ||
| 2014 | ;; optax. | ||
| 2015 | (arguments | ||
| 2016 | (list #:tests? #false)) | ||
| 2017 | (propagated-inputs (list python-absl-py | ||
| 2018 | python-chex | ||
| 2019 | python-jax | ||
| 2020 | python-jaxlib | ||
| 2021 | python-numpy)) | ||
| 2022 | (native-inputs | ||
| 2023 | (list python-dm-tree | ||
| 2024 | python-pytest)) | ||
| 2025 | (home-page "https://github.com/google-deepmind/optax/") | ||
| 2026 | (synopsis "Gradient processing and optimization library for JAX") | ||
| 2027 | (description "Optax is a gradient processing and optimization | ||
| 2028 | library for JAX.") | ||
| 2029 | (license license:asl2.0))) | ||
