Skip to content

Commit 82c838f

Browse files
committed
Generate Python docs from pytorch/pytorch@efebec5
1 parent 3f73b3a commit 82c838f

File tree

2,570 files changed

+8340
-5904
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,570 files changed

+8340
-5904
lines changed

main/_images/RReLU.png

-158 Bytes
Loading

main/_modules/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch.html

+10-8
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

@@ -917,20 +918,21 @@ <h1>Source code for torch</h1><div class="highlight"><pre>
917918

918919
<span class="k">try</span><span class="p">:</span>
919920
<span class="n">ctypes</span><span class="o">.</span><span class="n">CDLL</span><span class="p">(</span><span class="n">global_deps_lib_path</span><span class="p">,</span> <span class="n">mode</span><span class="o">=</span><span class="n">ctypes</span><span class="o">.</span><span class="n">RTLD_GLOBAL</span><span class="p">)</span>
920-
<span class="c1"># Workaround slim-wheel CUDA-12.4+ dependency bug in libcusparse by preloading nvjitlink</span>
921-
<span class="c1"># In those versions of cuda cusparse depends on nvjitlink, but does not have rpath when</span>
921+
<span class="c1"># Workaround slim-wheel CUDA dependency bugs in cusparse and cudnn by preloading nvjitlink</span>
922+
<span class="c1"># and nvrtc. In CUDA-12.4+ cusparse depends on nvjitlink, but does not have rpath when</span>
922923
<span class="c1"># shipped as wheel, which results in OS picking wrong/older version of nvjitlink library</span>
923-
<span class="c1"># if `LD_LIBRARY_PATH` is defined</span>
924-
<span class="c1"># See https://github.com/pytorch/pytorch/issues/138460</span>
925-
<span class="k">if</span> <span class="n">version</span><span class="o">.</span><span class="n">cuda</span> <span class="ow">not</span> <span class="ow">in</span> <span class="p">[</span><span class="s2">&quot;12.4&quot;</span><span class="p">,</span> <span class="s2">&quot;12.6&quot;</span><span class="p">]:</span> <span class="c1"># type: ignore[name-defined]</span>
926-
<span class="k">return</span>
924+
<span class="c1"># if `LD_LIBRARY_PATH` is defined, see https://github.com/pytorch/pytorch/issues/138460</span>
925+
<span class="c1"># Similar issue exist in cudnn that dynamically loads nvrtc, unaware of its relative path.</span>
926+
<span class="c1"># See https://github.com/pytorch/pytorch/issues/145580</span>
927927
<span class="k">try</span><span class="p">:</span>
928928
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="s2">&quot;/proc/self/maps&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
929929
<span class="n">_maps</span> <span class="o">=</span> <span class="n">f</span><span class="o">.</span><span class="n">read</span><span class="p">()</span>
930930
<span class="c1"># libtorch_global_deps.so always depends in cudart, check if its installed via wheel</span>
931931
<span class="k">if</span> <span class="s2">&quot;nvidia/cuda_runtime/lib/libcudart.so&quot;</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">_maps</span><span class="p">:</span>
932932
<span class="k">return</span>
933-
<span class="c1"># If all abovementioned conditions are met, preload nvjitlink</span>
933+
<span class="c1"># If all above-mentioned conditions are met, preload nvrtc and nvjitlink</span>
934+
<span class="c1"># Please note that order are important for CUDA-11.8 , as nvjitlink does not exist there</span>
935+
<span class="n">_preload_cuda_deps</span><span class="p">(</span><span class="s2">&quot;cuda_nvrtc&quot;</span><span class="p">,</span> <span class="s2">&quot;libnvrtc.so.*[0-9]&quot;</span><span class="p">)</span>
934936
<span class="n">_preload_cuda_deps</span><span class="p">(</span><span class="s2">&quot;nvjitlink&quot;</span><span class="p">,</span> <span class="s2">&quot;libnvJitLink.so.*[0-9]&quot;</span><span class="p">)</span>
935937
<span class="k">except</span> <span class="ne">Exception</span><span class="p">:</span>
936938
<span class="k">pass</span>

main/_modules/torch/__config__.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/__future__.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/_jit_internal.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/_library/custom_ops.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/_lobpcg.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/_logging/_internal.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/_lowrank.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/_tensor.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/_tensor_str.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/accelerator.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/amp/autocast_mode.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/ao/nn/intrinsic/modules/fused.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/ao/nn/intrinsic/qat/modules/conv_fused.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/ao/nn/intrinsic/qat/modules/linear_relu.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/ao/nn/intrinsic/quantized/dynamic/modules/linear_relu.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

main/_modules/torch/ao/nn/intrinsic/quantized/modules/bn_relu.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<div class="pytorch-left-menu-search">
300300

301301
<div class="version">
302-
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+git714f643 ) &#x25BC</a>
302+
<a href='https://pytorch.org/docs/versions.html'>main (2.7.0a0+gitefebec5 ) &#x25BC</a>
303303
</div>
304304
<div id="searchBox">
305305
<div class="searchbox" id="googleSearchBox">
@@ -526,6 +526,7 @@
526526
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/text/stable">torchtext</a></li>
527527
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/vision/stable">torchvision</a></li>
528528
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/xla/">PyTorch on XLA Devices</a></li>
529+
<li class="toctree-l1"><a class="reference external" href="https://pytorch.org/ao">torchao</a></li>
529530
</ul>
530531

531532

0 commit comments

Comments
 (0)