You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<dt><aclass="reference internal" href="array_api_extra.testing.patch_lazy_xp_functions.html#array_api_extra.testing.patch_lazy_xp_functions" title="array_api_extra.testing.patch_lazy_xp_functions"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">patch_lazy_xp_functions</span></code></a></dt><dd><p>Companion function to call from the test or fixture.</p>
319
319
</dd>
320
-
<dt><aclass="reference external" href="https://jax.readthedocs.io/en/latest/_autosummary/jax.jit.html#jax.jit" title="(in JAX)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">jax.jit</span></code></a></dt><dd><p>JAX function to compile a function for performance.</p>
320
+
<dt><aclass="reference external" href="https://docs.jax.dev/en/latest/_autosummary/jax.jit.html#jax.jit" title="(in JAX)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">jax.jit</span></code></a></dt><dd><p>JAX function to compile a function for performance.</p>
<dd><p>Test lazy execution of functions tagged with <aclass="reference internal" href="array_api_extra.testing.lazy_xp_function.html#array_api_extra.testing.lazy_xp_function" title="array_api_extra.testing.lazy_xp_function"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">lazy_xp_function()</span></code></a>.</p>
275
275
<p>If <codeclass="docutils literal notranslate"><spanclass="pre">xp==jax.numpy</span></code>, search for all functions which have been tagged with
276
276
<aclass="reference internal" href="array_api_extra.testing.lazy_xp_function.html#array_api_extra.testing.lazy_xp_function" title="array_api_extra.testing.lazy_xp_function"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">lazy_xp_function()</span></code></a> in the globals of the module that defines the current test
277
-
and wrap them with <aclass="reference external" href="https://jax.readthedocs.io/en/latest/_autosummary/jax.jit.html#jax.jit" title="(in JAX)"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">jax.jit()</span></code></a>. Unwrap them at the end of the test.</p>
277
+
and wrap them with <aclass="reference external" href="https://docs.jax.dev/en/latest/_autosummary/jax.jit.html#jax.jit" title="(in JAX)"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">jax.jit()</span></code></a>. Unwrap them at the end of the test.</p>
278
278
<p>If <codeclass="docutils literal notranslate"><spanclass="pre">xp==dask.array</span></code>, wrap the functions with a decorator that disables
279
279
<codeclass="docutils literal notranslate"><spanclass="pre">compute()</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">persist()</span></code>.</p>
280
280
<p>This function should be typically called by your library’s <cite>xp</cite> fixture that runs
0 commit comments