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
Copy file name to clipboardExpand all lines: generated/array_api_extra.testing.patch_lazy_xp_functions.html
+18-7Lines changed: 18 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -275,7 +275,7 @@
275
275
<h1>array_api_extra.testing.patch_lazy_xp_functions<aclass="headerlink" href="#array-api-extra-testing-patch-lazy-xp-functions" title="Link to this heading">¶</a></h1>
<spanclass="sig-prename descclassname"><spanclass="pre">array_api_extra.testing.</span></span><spanclass="sig-name descname"><spanclass="pre">patch_lazy_xp_functions</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">request</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">monkeypatch</span></span></em>, <emclass="sig-param"><spanclass="keyword-only-separator o"><abbrtitle="Keyword-only parameters separator (PEP 3102)"><spanclass="pre">*</span></abbr></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">xp</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#array_api_extra.testing.patch_lazy_xp_functions" title="Link to this definition">¶</a></dt>
278
+
<spanclass="sig-prename descclassname"><spanclass="pre">array_api_extra.testing.</span></span><spanclass="sig-name descname"><spanclass="pre">patch_lazy_xp_functions</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">request</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">monkeypatch</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="keyword-only-separator o"><abbrtitle="Keyword-only parameters separator (PEP 3102)"><spanclass="pre">*</span></abbr></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">xp</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#array_api_extra.testing.patch_lazy_xp_functions" title="Link to this definition">¶</a></dt>
279
279
<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>
280
280
<p>If <codeclass="docutils literal notranslate"><spanclass="pre">xp==jax.numpy</span></code>, search for all functions which have been tagged with
281
281
<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,
you should mark these backends with <codeclass="docutils literal notranslate"><spanclass="pre">@pytest.mark.thread_unsafe</span></code>, as shown in
0 commit comments