Skip to content

Commit 14ee187

Browse files
committed
Deploying to gh-pages from @ 522a608 🚀
1 parent 03f1305 commit 14ee187

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

helper-functions.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ <h2>Array Method Helpers<a class="headerlink" href="#array-method-helpers" title
384384
device is the CPU. For CuPy, this method supports CuPy CUDA
385385
<a class="reference external" href="https://docs.cupy.dev/en/stable/reference/generated/cupy.cuda.Device.html#cupy.cuda.Device" title="(in CuPy v13.3.0)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Device</span></code></a> and
386386
<a class="reference external" href="https://docs.cupy.dev/en/stable/reference/generated/cupy.cuda.Stream.html#cupy.cuda.Stream" title="(in CuPy v13.3.0)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Stream</span></code></a> objects. For PyTorch,
387-
this is the same as <a class="reference external" href="https://pytorch.org/docs/stable/generated/torch.Tensor.to.html#torch.Tensor.to" title="(in PyTorch v2.4)"><code class="xref py py-meth docutils literal notranslate"><span class="pre">x.to(device)</span></code></a>
387+
this is the same as <a class="reference external" href="https://pytorch.org/docs/stable/generated/torch.Tensor.to.html#torch.Tensor.to" title="(in PyTorch v2.5)"><code class="xref py py-meth docutils literal notranslate"><span class="pre">x.to(device)</span></code></a>
388388
(the <code class="docutils literal notranslate"><span class="pre">stream</span></code> argument is not supported in PyTorch).</p>
389389
<div class="admonition seealso">
390390
<p class="admonition-title">See also</p>
@@ -401,7 +401,7 @@ <h2>Array Method Helpers<a class="headerlink" href="#array-method-helpers" title
401401
<dd><p>Return the total number of elements of x.</p>
402402
<p>This is equivalent to <code class="code docutils literal notranslate"><span class="pre">x.size</span></code> according to the <a class="reference external" href="https://data-apis.org/array-api/latest/API_specification/generated/array_api.array.size.html">standard</a>.
403403
This helper is included because PyTorch defines <code class="code docutils literal notranslate"><span class="pre">size</span></code> in an
404-
<a class="reference external" href="https://pytorch.org/docs/stable/generated/torch.Tensor.size.html#torch.Tensor.size" title="(in PyTorch v2.4)"><code class="xref py py-meth docutils literal notranslate"><span class="pre">incompatible</span> <span class="pre">way</span></code></a>.</p>
404+
<a class="reference external" href="https://pytorch.org/docs/stable/generated/torch.Tensor.size.html#torch.Tensor.size" title="(in PyTorch v2.5)"><code class="xref py py-meth docutils literal notranslate"><span class="pre">incompatible</span> <span class="pre">way</span></code></a>.</p>
405405
</dd></dl>
406406

407407
</section>

supported-array-libraries.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ <h2><a class="reference external" href="https://pytorch.org/">PyTorch</a><a clas
311311
<code class="docutils literal notranslate"><span class="pre">__array_namespace__</span></code> and <code class="docutils literal notranslate"><span class="pre">to_device</span></code> methods, so the corresponding helper
312312
functions <a class="reference internal" href="helper-functions.html#array_api_compat.array_namespace" title="array_api_compat.array_namespace"><code class="xref py py-func docutils literal notranslate"><span class="pre">array_namespace()</span></code></a> and <a class="reference internal" href="helper-functions.html#array_api_compat.to_device" title="array_api_compat.to_device"><code class="xref py py-func docutils literal notranslate"><span class="pre">to_device()</span></code></a> in this
313313
library should be used instead.</p></li>
314-
<li><p>The <a class="reference external" href="https://pytorch.org/docs/stable/generated/torch.Tensor.size.html#torch.Tensor.size" title="(in PyTorch v2.4)"><code class="xref py py-meth docutils literal notranslate"><span class="pre">x.size()</span></code></a> attribute on
314+
<li><p>The <a class="reference external" href="https://pytorch.org/docs/stable/generated/torch.Tensor.size.html#torch.Tensor.size" title="(in PyTorch v2.5)"><code class="xref py py-meth docutils literal notranslate"><span class="pre">x.size()</span></code></a> attribute on
315315
<code class="docutils literal notranslate"><span class="pre">torch.Tensor</span></code> is a method that behaves differently from the
316316
<a class="reference external" href="https://data-apis.org/array-api/draft/API_specification/generated/array_api.array.size.html"><code class="docutils literal notranslate"><span class="pre">x.size</span></code></a>
317317
attribute in the spec. Use the <a class="reference internal" href="helper-functions.html#array_api_compat.size" title="array_api_compat.size"><code class="xref py py-func docutils literal notranslate"><span class="pre">size()</span></code></a> helper function as a

0 commit comments

Comments
 (0)