Skip to content

Commit 3d39411

Browse files
committed
Generate Python docs from pytorch/pytorch@5c9184d
1 parent f1d8de6 commit 3d39411

File tree

829 files changed

+897
-837
lines changed

Some content is hidden

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

829 files changed

+897
-837
lines changed

docs/master/__config__.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188

189189

190190
<div class="version">
191-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
191+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
192192
</div>
193193

194194

docs/master/_modules/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/__config__.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/_jit_internal.html

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

@@ -612,6 +612,37 @@ <h1>Source code for torch._jit_internal</h1><div class="highlight"><pre>
612612
<span class="k">return</span> <span class="nb">all</span><span class="p">(</span><span class="n">has_code</span><span class="p">)</span>
613613

614614

615+
<span class="k">def</span> <span class="nf">get_callable_argument_names</span><span class="p">(</span><span class="n">fn</span><span class="p">):</span>
616+
<span class="sd">&quot;&quot;&quot;</span>
617+
<span class="sd"> Gets names of all POSITIONAL_OR_KEYWORD arguments for callable `fn`.</span>
618+
<span class="sd"> Returns an empty list when other types of arguments are present.</span>
619+
620+
<span class="sd"> This is used by `torch.jit.trace` to assign meaningful argument names to</span>
621+
<span class="sd"> traced functions and modules.</span>
622+
623+
<span class="sd"> Args:</span>
624+
<span class="sd"> fn: A callable.</span>
625+
<span class="sd"> Returns:</span>
626+
<span class="sd"> Argument names: List[str]</span>
627+
<span class="sd"> &quot;&quot;&quot;</span>
628+
<span class="c1"># inspect.signature may fail, give up in that case.</span>
629+
<span class="k">try</span><span class="p">:</span>
630+
<span class="n">callable_signature</span> <span class="o">=</span> <span class="n">inspect</span><span class="o">.</span><span class="n">signature</span><span class="p">(</span><span class="n">fn</span><span class="p">)</span>
631+
<span class="k">except</span> <span class="ne">Exception</span><span class="p">:</span>
632+
<span class="k">return</span> <span class="p">[]</span>
633+
634+
<span class="n">argument_names</span> <span class="o">=</span> <span class="p">[]</span>
635+
<span class="k">for</span> <span class="n">name</span><span class="p">,</span> <span class="n">param</span> <span class="ow">in</span> <span class="n">callable_signature</span><span class="o">.</span><span class="n">parameters</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
636+
<span class="c1"># All four other types of arguments do not map to individual values</span>
637+
<span class="c1"># with a keyword as name.</span>
638+
<span class="k">if</span> <span class="ow">not</span> <span class="n">param</span><span class="o">.</span><span class="n">kind</span> <span class="o">==</span> <span class="n">param</span><span class="o">.</span><span class="n">POSITIONAL_OR_KEYWORD</span><span class="p">:</span>
639+
<span class="k">return</span> <span class="p">[]</span>
640+
641+
<span class="n">argument_names</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">name</span><span class="p">)</span>
642+
643+
<span class="k">return</span> <span class="n">argument_names</span>
644+
645+
615646
<span class="k">def</span> <span class="nf">get_annotation_str</span><span class="p">(</span><span class="n">annotation</span><span class="p">):</span>
616647
<span class="sd">&quot;&quot;&quot;</span>
617648
<span class="sd"> Convert an AST node containing a type annotation to the string present in the source</span>

docs/master/_modules/torch/_lobpcg.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/_lowrank.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/_tensor_str.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/_utils.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/_vmap_internals.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/autograd.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/autograd/anomaly_mode.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/autograd/function.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/autograd/functional.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/autograd/grad_mode.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/autograd/gradcheck.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/autograd/profiler.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/backends/cuda.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/backends/cudnn.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/backends/mkl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/backends/mkldnn.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/backends/openmp.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/cuda.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/cuda/amp/autocast_mode.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/cuda/amp/grad_scaler.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/cuda/memory.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/cuda/nvtx.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/cuda/random.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/cuda/streams.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/distributed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/distributed/algorithms/ddp_comm_hooks/default_hooks.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/distributed/algorithms/ddp_comm_hooks/powerSGD_hook.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/distributed/autograd.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/distributed/distributed_c10d.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/distributed/optim/optimizer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/distributed/pipeline/sync/pipe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/distributed/pipeline/sync/skip/skippable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/distributed/rpc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

docs/master/_modules/torch/distributed/rpc/api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188

189189
<div class="version">
190-
<a href='http://pytorch.org/docs/versions.html'>1.8.0a0+99bc386 &#x25BC</a>
190+
<a href='http://pytorch.org/docs/versions.html'>1.9.0a0+5c9184d &#x25BC</a>
191191
</div>
192192

193193

@@ -695,7 +695,7 @@ <h1>Source code for torch.distributed.rpc.api</h1><div class="highlight"><pre>
695695
<span class="k">if</span> <span class="n">graceful</span><span class="p">:</span>
696696
<span class="n">_wait_all_workers</span><span class="p">()</span>
697697
<span class="n">_delete_all_user_and_unforked_owner_rrefs</span><span class="p">()</span>
698-
<span class="n">_get_current_rpc_agent</span><span class="p">()</span><span class="o">.</span><span class="n">join</span><span class="p">()</span>
698+
<span class="n">_get_current_rpc_agent</span><span class="p">()</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">shutdown</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
699699
<span class="k">try</span><span class="p">:</span>
700700
<span class="c1"># This raises a `TORCH_CHECK()` exception on RRef leak detected.</span>
701701
<span class="n">_destroy_rref_context</span><span class="p">(</span><span class="n">_ignore_rref_leak</span><span class="p">)</span>

0 commit comments

Comments
 (0)