Skip to content

Commit 5535519

Browse files
committed
auto-generating sphinx docs
1 parent 309d7ae commit 5535519

File tree

286 files changed

+380
-326
lines changed

Some content is hidden

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

286 files changed

+380
-326
lines changed

docs/master/__config__.html

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

160160

161161
<div class="version">
162-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
162+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
163163
</div>
164164

165165

docs/master/_modules/index.html

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

docs/master/_modules/torch.html

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

docs/master/_modules/torch/__config__.html

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

docs/master/_modules/torch/_jit_internal.html

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

docs/master/_modules/torch/_lobpcg.html

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

docs/master/_modules/torch/_lowrank.html

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

docs/master/_modules/torch/_tensor_str.html

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

docs/master/_modules/torch/_utils.html

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

docs/master/_modules/torch/autograd.html

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

@@ -706,13 +706,46 @@ <h1>Source code for torch.autograd.profiler</h1><div class="highlight"><pre>
706706
<span class="sd"> &quot;&quot;&quot;</span>
707707
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">):</span>
708708
<span class="bp">self</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="n">name</span>
709+
<span class="c1"># Whether or not we should run record function&#39;s end callbacks when exiting.</span>
710+
<span class="bp">self</span><span class="o">.</span><span class="n">run_callbacks_on_exit</span> <span class="o">=</span> <span class="kc">True</span>
709711

710712
<span class="k">def</span> <span class="fm">__enter__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
711713
<span class="bp">self</span><span class="o">.</span><span class="n">handle</span> <span class="o">=</span> <span class="n">torch</span><span class="o">.</span><span class="n">ops</span><span class="o">.</span><span class="n">profiler</span><span class="o">.</span><span class="n">_record_function_enter</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">name</span><span class="p">)</span>
714+
<span class="k">return</span> <span class="bp">self</span>
712715

713716
<span class="k">def</span> <span class="fm">__exit__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">):</span>
714-
<span class="n">torch</span><span class="o">.</span><span class="n">ops</span><span class="o">.</span><span class="n">profiler</span><span class="o">.</span><span class="n">_record_function_exit</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">handle</span><span class="p">)</span>
715-
<span class="k">return</span> <span class="kc">False</span></div>
717+
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">run_callbacks_on_exit</span><span class="p">:</span>
718+
<span class="n">torch</span><span class="o">.</span><span class="n">ops</span><span class="o">.</span><span class="n">profiler</span><span class="o">.</span><span class="n">_record_function_exit</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">handle</span><span class="p">)</span>
719+
<span class="k">return</span> <span class="kc">False</span>
720+
721+
<span class="k">def</span> <span class="nf">_call_end_callbacks_on_future</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">fut</span><span class="p">):</span>
722+
<span class="sd">&quot;&quot;&quot;</span>
723+
<span class="sd"> _call_end_callbacks_on_future is meant to be used for profiling async</span>
724+
<span class="sd"> calls that return a future. Calling this function will extend recording</span>
725+
<span class="sd"> beyond this scope, until the future is satisfied. It is useful for profiling</span>
726+
<span class="sd"> the end to end time of asynchronous calls. This function should only be called</span>
727+
<span class="sd"> once to attach the callback onto the future, and will throw if called multiple</span>
728+
<span class="sd"> times.</span>
729+
730+
<span class="sd"> Arguments:</span>
731+
<span class="sd"> fut: (torch.distributed.rpc.Future or torch._C.Future): future for which to schedule</span>
732+
<span class="sd"> callback for.</span>
733+
<span class="sd"> &quot;&quot;&quot;</span>
734+
<span class="c1"># Throw if we have already attached a callback onto the future.</span>
735+
<span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">run_callbacks_on_exit</span><span class="p">:</span>
736+
<span class="k">raise</span> <span class="ne">RuntimeError</span><span class="p">(</span><span class="s2">&quot;_call_end_callbacks_on_future can only be called once.&quot;</span><span class="p">)</span>
737+
738+
<span class="c1"># We are scheduling to run this RecordFunction&#39;s end callbacks when the</span>
739+
<span class="c1"># passed in future completes, so don&#39;t run end callbacks on exit.</span>
740+
<span class="bp">self</span><span class="o">.</span><span class="n">run_callbacks_on_exit</span> <span class="o">=</span> <span class="kc">False</span>
741+
<span class="c1"># TODO: Currently, we have two different futures that can be returned,</span>
742+
<span class="c1"># thus, two different code paths. We should clean this up when the</span>
743+
<span class="c1"># futures are merged and rpc_async returns a consistent type (https://github.com/pytorch/pytorch/issues/34999).</span>
744+
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">fut</span><span class="p">,</span> <span class="n">torch</span><span class="o">.</span><span class="n">distributed</span><span class="o">.</span><span class="n">rpc</span><span class="o">.</span><span class="n">Future</span><span class="p">):</span>
745+
<span class="n">torch</span><span class="o">.</span><span class="n">autograd</span><span class="o">.</span><span class="n">_call_end_callbacks_on_fut</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">handle</span><span class="p">,</span> <span class="n">fut</span><span class="p">)</span>
746+
<span class="k">else</span><span class="p">:</span>
747+
<span class="c1"># jit Future, call jit operator</span>
748+
<span class="n">torch</span><span class="o">.</span><span class="n">ops</span><span class="o">.</span><span class="n">profiler</span><span class="o">.</span><span class="n">_call_end_callbacks_on_jit_fut</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">handle</span><span class="p">,</span> <span class="n">fut</span><span class="p">)</span></div>
716749

717750

718751
<div class="viewcode-block" id="emit_nvtx"><a class="viewcode-back" href="../../../autograd.html#torch.autograd.profiler.emit_nvtx">[docs]</a><span class="k">class</span> <span class="nc">emit_nvtx</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>

docs/master/_modules/torch/cuda.html

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

docs/master/_modules/torch/distributed.html

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

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

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

159159

160160
<div class="version">
161-
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+dc4d888 &#x25BC</a>
161+
<a href='http://pytorch.org/docs/versions.html'>1.6.0a0+e0e7058 &#x25BC</a>
162162
</div>
163163

164164

0 commit comments

Comments
 (0)