File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,11 @@ <h1>array_api_extra.lazy_apply<a class="headerlink" href="#array-api-extra-lazy-
345345< a class ="reference external " href ="https://numpy.org/doc/stable/reference/generated/numpy.asarray.html#numpy.asarray " title ="(in NumPy v2.2) "> < code class ="xref py py-func docutils literal notranslate "> < span class ="pre "> numpy.asarray()</ span > </ code > </ a > . < a class ="reference external " href ="https://sparse.pydata.org/en/stable/operations.html#package-configuration "> This safety mechanism can be disabled</ a > .</ p >
346346</ dd >
347347< dt > Dask</ dt > < dd > < p > This allows applying eager functions to Dask arrays.
348- The Dask graph won’t be computed.</ p >
348+ The Dask graph won’t be computed until the user calls < code class ="docutils literal notranslate "> < span class ="pre "> compute()</ span > </ code > or
349+ < code class ="docutils literal notranslate "> < span class ="pre "> persist()</ span > </ code > down the line.</ p >
350+ < p > The function name will be prominently visible on the user-facing Dask
351+ dashboard and on Prometheus metrics, so it is recommended for it to be
352+ meaningful.</ p >
349353< p > < cite > lazy_apply</ cite > doesn’t know if < cite > func</ cite > reduces along any axes; also, shape
350354changes are non-trivial in chunked Dask arrays. For these reasons, all inputs
351355will be rechunked into a single chunk.</ p >
You can’t perform that action at this time.
0 commit comments