Test problems with JAX

Aperta
#768 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

@dhuppenkothen ci sta già lavorando.

Dal 5/10/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

@dhuppenkothen @Gaurav17Joshi

  1. we are getting this new deprecation warning. Better to fix it asap, so that we have a stable enough API

    DeprecationWarning: jax.linear_util.transformation is deprecated. Use jax.extend.linear_util.transformation instead.

  2. new test problem:

ERROR ../../.tox/py311-test-alldeps-cov/lib/python3.11/site-packages/stingray/modeling/tests/test_gpmodeling.py::TestGPResult::test_sample - jax.errors.UnexpectedTracerError: Encountered an unexpected tracer. A function transformed by JAX had a side effect, allowing for a reference to an intermediate value with type float64[5] wrapped in a DynamicJaxprTracer to escape the scope of the transformation.
JAX transformations require that functions explicitly return their outputs, and disallow saving intermediate values to global state.
The function being traced when the value leaked was sample_U at /home/runner/work/stingray/stingray/.tox/py311-test-alldeps-cov/lib/python3.11/site-packages/jaxns/model.py:47 traced for jit.
Lingua principale
Python
Stelle
229
Fork
196
Merge medio
4g 12h
PR unite (30g)
20

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di StingraySoftware/stingray

Tutte le issue di StingraySoftware/stingray

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.