Skip to content

Commit

Permalink
Generate Python docs from pytorch/pytorch@c1cc74c
Browse files Browse the repository at this point in the history
  • Loading branch information
pytorchbot committed Aug 21, 2023
1 parent 8be7c6a commit 444ae87
Show file tree
Hide file tree
Showing 2,270 changed files with 2,569 additions and 2,611 deletions.
Binary file modified docs/main/_images/RReLU.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/main/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
6 changes: 3 additions & 3 deletions docs/main/_modules/torch.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down Expand Up @@ -2187,8 +2187,8 @@ <h1>Source code for torch</h1><div class="highlight"><pre>
<span class="n">device_type</span> <span class="o">=</span> <span class="n">torch</span><span class="o">.</span><span class="n">device</span><span class="p">(</span><span class="n">device_type</span><span class="p">)</span><span class="o">.</span><span class="n">type</span>
<span class="n">m</span> <span class="o">=</span> <span class="n">sys</span><span class="o">.</span><span class="n">modules</span><span class="p">[</span><span class="vm">__name__</span><span class="p">]</span>
<span class="k">if</span> <span class="nb">hasattr</span><span class="p">(</span><span class="n">m</span><span class="p">,</span> <span class="n">device_type</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">RuntimeError</span><span class="p">(</span><span class="s2">&quot;The runtime module of &#39;</span><span class="si">{}</span><span class="s2">&#39; has already &quot;</span>
<span class="s2">&quot;been registered with &#39;</span><span class="si">{}</span><span class="s2">&#39;&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">device_type</span><span class="p">,</span> <span class="nb">getattr</span><span class="p">(</span><span class="n">m</span><span class="p">,</span> <span class="n">device_type</span><span class="p">)))</span>
<span class="k">raise</span> <span class="ne">RuntimeError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;The runtime module of &#39;</span><span class="si">{</span><span class="n">device_type</span><span class="si">}</span><span class="s2">&#39; has already &quot;</span>
<span class="sa">f</span><span class="s2">&quot;been registered with &#39;</span><span class="si">{</span><span class="nb">getattr</span><span class="p">(</span><span class="n">m</span><span class="p">,</span><span class="w"> </span><span class="n">device_type</span><span class="p">)</span><span class="si">}</span><span class="s2">&#39;&quot;</span><span class="p">)</span>
<span class="nb">setattr</span><span class="p">(</span><span class="n">m</span><span class="p">,</span> <span class="n">device_type</span><span class="p">,</span> <span class="n">module</span><span class="p">)</span>
<span class="n">torch_module_name</span> <span class="o">=</span> <span class="s1">&#39;.&#39;</span><span class="o">.</span><span class="n">join</span><span class="p">([</span><span class="vm">__name__</span><span class="p">,</span> <span class="n">device_type</span><span class="p">])</span>
<span class="n">sys</span><span class="o">.</span><span class="n">modules</span><span class="p">[</span><span class="n">torch_module_name</span><span class="p">]</span> <span class="o">=</span> <span class="n">module</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/main/_modules/torch/__config__.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
2 changes: 1 addition & 1 deletion docs/main/_modules/torch/_jit_internal.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
10 changes: 4 additions & 6 deletions docs/main/_modules/torch/_lobpcg.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down Expand Up @@ -1073,8 +1073,8 @@ <h1>Source code for torch._lobpcg</h1><div class="highlight"><pre>

<span class="k">if</span> <span class="n">m</span> <span class="o">&lt;</span> <span class="mi">3</span> <span class="o">*</span> <span class="n">n</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span>
<span class="s2">&quot;LPBPCG algorithm is not applicable when the number of A rows (=</span><span class="si">{}</span><span class="s2">)&quot;</span>
<span class="s2">&quot; is smaller than 3 x the number of requested eigenpairs (=</span><span class="si">{}</span><span class="s2">)&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">m</span><span class="p">,</span> <span class="n">n</span><span class="p">)</span>
<span class="sa">f</span><span class="s2">&quot;LPBPCG algorithm is not applicable when the number of A rows (=</span><span class="si">{</span><span class="n">m</span><span class="si">}</span><span class="s2">)&quot;</span>
<span class="sa">f</span><span class="s2">&quot; is smaller than 3 x the number of requested eigenpairs (=</span><span class="si">{</span><span class="n">n</span><span class="si">}</span><span class="s2">)&quot;</span>
<span class="p">)</span>

<span class="n">method</span> <span class="o">=</span> <span class="s2">&quot;ortho&quot;</span> <span class="k">if</span> <span class="n">method</span> <span class="ow">is</span> <span class="kc">None</span> <span class="k">else</span> <span class="n">method</span>
Expand Down Expand Up @@ -1610,9 +1610,7 @@ <h1>Source code for torch._lobpcg</h1><div class="highlight"><pre>
<span class="k">assert</span> <span class="n">B</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span>
<span class="s2">&quot;Overdetermined shape of U:&quot;</span>
<span class="s2">&quot; #B-cols(=</span><span class="si">{}</span><span class="s2">) &gt;= #U-cols(=</span><span class="si">{}</span><span class="s2">) + #V-cols(=</span><span class="si">{}</span><span class="s2">) must hold&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span>
<span class="n">B</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">],</span> <span class="n">U</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">],</span> <span class="n">V</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span>
<span class="p">)</span>
<span class="sa">f</span><span class="s2">&quot; #B-cols(=</span><span class="si">{</span><span class="n">B</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span><span class="si">}</span><span class="s2">) &gt;= #U-cols(=</span><span class="si">{</span><span class="n">U</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span><span class="si">}</span><span class="s2">) + #V-cols(=</span><span class="si">{</span><span class="n">V</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span><span class="si">}</span><span class="s2">) must hold&quot;</span>
<span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">ivars</span><span class="p">[</span><span class="s2">&quot;ortho_i&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="n">i</span>
<span class="bp">self</span><span class="o">.</span><span class="n">ivars</span><span class="p">[</span><span class="s2">&quot;ortho_j&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="n">j</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/main/_modules/torch/_logging/_internal.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
2 changes: 1 addition & 1 deletion docs/main/_modules/torch/_lowrank.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
2 changes: 1 addition & 1 deletion docs/main/_modules/torch/_tensor.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
2 changes: 1 addition & 1 deletion docs/main/_modules/torch/_tensor_str.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
2 changes: 1 addition & 1 deletion docs/main/_modules/torch/_utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
2 changes: 1 addition & 1 deletion docs/main/_modules/torch/amp/autocast_mode.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
2 changes: 1 addition & 1 deletion docs/main/_modules/torch/ao/nn/qat/modules/conv.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
2 changes: 1 addition & 1 deletion docs/main/_modules/torch/ao/nn/qat/modules/linear.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down
6 changes: 3 additions & 3 deletions docs/main/_modules/torch/ao/nn/quantizable/modules/rnn.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down Expand Up @@ -777,8 +777,8 @@ <h1>Source code for torch.ao.nn.quantizable.modules.rnn</h1><div class="highligh
<span class="k">if</span> <span class="n">num_layers</span> <span class="o">==</span> <span class="mi">1</span><span class="p">:</span>
<span class="n">warnings</span><span class="o">.</span><span class="n">warn</span><span class="p">(</span><span class="s2">&quot;dropout option adds dropout after all but last &quot;</span>
<span class="s2">&quot;recurrent layer, so non-zero dropout expects &quot;</span>
<span class="s2">&quot;num_layers greater than 1, but got dropout=</span><span class="si">{}</span><span class="s2"> &quot;</span>
<span class="s2">&quot;and num_layers=</span><span class="si">{}</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">dropout</span><span class="p">,</span> <span class="n">num_layers</span><span class="p">))</span>
<span class="sa">f</span><span class="s2">&quot;num_layers greater than 1, but got dropout=</span><span class="si">{</span><span class="n">dropout</span><span class="si">}</span><span class="s2"> &quot;</span>
<span class="sa">f</span><span class="s2">&quot;and num_layers=</span><span class="si">{</span><span class="n">num_layers</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>

<span class="n">layers</span> <span class="o">=</span> <span class="p">[</span><span class="n">_LSTMLayer</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">input_size</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">hidden_size</span><span class="p">,</span>
<span class="bp">self</span><span class="o">.</span><span class="n">bias</span><span class="p">,</span> <span class="n">batch_first</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+git02c2b75 ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>main (2.1.0a0+gitc1cc74c ) &#x25BC</a>
</div>


Expand Down Expand Up @@ -564,7 +564,7 @@ <h1>Source code for torch.ao.nn.quantized.dynamic.modules.linear</h1><div class=
<span class="n">weight_observer</span> <span class="o">=</span> <span class="n">default_dynamic_qconfig</span><span class="o">.</span><span class="n">weight</span><span class="p">()</span>
<span class="n">dtype</span> <span class="o">=</span> <span class="n">weight_observer</span><span class="o">.</span><span class="n">dtype</span>
<span class="k">assert</span> <span class="n">dtype</span> <span class="ow">in</span> <span class="p">[</span><span class="n">torch</span><span class="o">.</span><span class="n">qint8</span><span class="p">,</span> <span class="n">torch</span><span class="o">.</span><span class="n">float16</span><span class="p">],</span> <span class="s2">&quot;The only supported dtypes for &quot;</span> \
<span class="s2">&quot;dynamic quantized linear are qint8 and float16 got: </span><span class="si">{}</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">dtype</span><span class="p">)</span>
<span class="sa">f</span><span class="s2">&quot;dynamic quantized linear are qint8 and float16 got: </span><span class="si">{</span><span class="n">dtype</span><span class="si">}</span><span class="s2">&quot;</span>
<span class="n">weight_observer</span><span class="p">(</span><span class="n">mod</span><span class="o">.</span><span class="n">weight</span><span class="p">)</span>
<span class="k">if</span> <span class="n">dtype</span> <span class="o">==</span> <span class="n">torch</span><span class="o">.</span><span class="n">qint8</span><span class="p">:</span>
<span class="n">qweight</span> <span class="o">=</span> <span class="n">_quantize_weight</span><span class="p">(</span><span class="n">mod</span><span class="o">.</span><span class="n">weight</span><span class="o">.</span><span class="n">float</span><span class="p">(),</span> <span class="n">weight_observer</span><span class="p">)</span>
Expand Down
Loading

0 comments on commit 444ae87

Please sign in to comment.