Skip to content

Commit

Permalink
Generate Python docs from pytorch/pytorch@0247ed2
Browse files Browse the repository at this point in the history
  • Loading branch information
pytorchbot committed Jan 30, 2023
1 parent a9da29a commit 08646de
Show file tree
Hide file tree
Showing 2,159 changed files with 2,250 additions and 2,267 deletions.
2 changes: 1 addition & 1 deletion docs/master/_dynamo.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


Expand Down
Binary file modified docs/master/_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/master/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


Expand Down Expand Up @@ -562,18 +562,10 @@ <h1>Source code for torch</h1><div class="highlight"><pre>

<span class="n">kernel32</span><span class="o">.</span><span class="n">LoadLibraryW</span><span class="o">.</span><span class="n">restype</span> <span class="o">=</span> <span class="n">ctypes</span><span class="o">.</span><span class="n">c_void_p</span>
<span class="k">if</span> <span class="n">with_load_library_flags</span><span class="p">:</span>
<span class="n">kernel32</span><span class="o">.</span><span class="n">AddDllDirectory</span><span class="o">.</span><span class="n">restype</span> <span class="o">=</span> <span class="n">ctypes</span><span class="o">.</span><span class="n">c_void_p</span>
<span class="n">kernel32</span><span class="o">.</span><span class="n">LoadLibraryExW</span><span class="o">.</span><span class="n">restype</span> <span class="o">=</span> <span class="n">ctypes</span><span class="o">.</span><span class="n">c_void_p</span>

<span class="k">for</span> <span class="n">dll_path</span> <span class="ow">in</span> <span class="n">dll_paths</span><span class="p">:</span>
<span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">version_info</span> <span class="o">&gt;=</span> <span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">8</span><span class="p">):</span>
<span class="n">os</span><span class="o">.</span><span class="n">add_dll_directory</span><span class="p">(</span><span class="n">dll_path</span><span class="p">)</span>
<span class="k">elif</span> <span class="n">with_load_library_flags</span><span class="p">:</span>
<span class="n">res</span> <span class="o">=</span> <span class="n">kernel32</span><span class="o">.</span><span class="n">AddDllDirectory</span><span class="p">(</span><span class="n">dll_path</span><span class="p">)</span>
<span class="k">if</span> <span class="n">res</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">err</span> <span class="o">=</span> <span class="n">ctypes</span><span class="o">.</span><span class="n">WinError</span><span class="p">(</span><span class="n">ctypes</span><span class="o">.</span><span class="n">get_last_error</span><span class="p">())</span>
<span class="n">err</span><span class="o">.</span><span class="n">strerror</span> <span class="o">+=</span> <span class="sa">f</span><span class="s1">&#39; Error adding &quot;</span><span class="si">{</span><span class="n">dll_path</span><span class="si">}</span><span class="s1">&quot; to the DLL directories.&#39;</span>
<span class="k">raise</span> <span class="n">err</span>
<span class="n">os</span><span class="o">.</span><span class="n">add_dll_directory</span><span class="p">(</span><span class="n">dll_path</span><span class="p">)</span>

<span class="k">try</span><span class="p">:</span>
<span class="n">ctypes</span><span class="o">.</span><span class="n">CDLL</span><span class="p">(</span><span class="s1">&#39;vcruntime140.dll&#39;</span><span class="p">)</span>
Expand Down Expand Up @@ -905,7 +897,7 @@ <h1>Source code for torch</h1><div class="highlight"><pre>
<span class="kn">import</span> <span class="nn">torch._C</span> <span class="k">as</span> <span class="nn">_C_for_compiled_check</span>

<span class="c1"># The __file__ check only works for Python 3.7 and above.</span>
<span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">version_info</span> <span class="o">&gt;=</span> <span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">7</span><span class="p">)</span> <span class="ow">and</span> <span class="n">_C_for_compiled_check</span><span class="o">.</span><span class="vm">__file__</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">if</span> <span class="n">_C_for_compiled_check</span><span class="o">.</span><span class="vm">__file__</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ImportError</span><span class="p">(</span><span class="n">textwrap</span><span class="o">.</span><span class="n">dedent</span><span class="p">(</span><span class="s1">&#39;&#39;&#39;</span>
<span class="s1"> Failed to load PyTorch C extensions:</span>
<span class="s1"> It appears that PyTorch has loaded the `torch/_C` folder</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/master/_modules/torch/__config__.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
<div class="pytorch-left-menu-search">

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


Expand Down Expand Up @@ -488,6 +488,7 @@ <h1>Source code for torch._jit_internal</h1><div class="highlight"><pre>
<span class="n">Any</span><span class="p">,</span>
<span class="n">Callable</span><span class="p">,</span>
<span class="n">Dict</span><span class="p">,</span>
<span class="n">Final</span><span class="p">,</span>
<span class="n">Generic</span><span class="p">,</span>
<span class="n">List</span><span class="p">,</span>
<span class="n">Optional</span><span class="p">,</span>
Expand All @@ -508,11 +509,6 @@ <h1>Source code for torch._jit_internal</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">torch._sources</span> <span class="kn">import</span> <span class="n">fake_range</span><span class="p">,</span> <span class="n">get_source_lines_and_file</span><span class="p">,</span> <span class="n">parse_def</span>
<span class="kn">from</span> <span class="nn">torch.futures</span> <span class="kn">import</span> <span class="n">Future</span>

<span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">version_info</span><span class="p">[:</span><span class="mi">2</span><span class="p">]</span> <span class="o">&gt;</span> <span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">7</span><span class="p">):</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Final</span>
<span class="k">else</span><span class="p">:</span>
<span class="kn">from</span> <span class="nn">typing_extensions</span> <span class="kn">import</span> <span class="n">Final</span>

<span class="n">LockType</span><span class="p">:</span> <span class="n">Type</span>
<span class="k">try</span><span class="p">:</span>
<span class="kn">import</span> <span class="nn">_thread</span>
Expand Down Expand Up @@ -1682,12 +1678,7 @@ <h1>Source code for torch._jit_internal</h1><div class="highlight"><pre>
<span class="k">def</span> <span class="nf">_create_named_tuple</span><span class="p">(</span>
<span class="n">t</span><span class="p">,</span> <span class="n">unqual_name</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">field_names</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">],</span> <span class="n">defaults</span><span class="p">:</span> <span class="n">Tuple</span><span class="p">[</span><span class="n">Any</span><span class="p">,</span> <span class="o">...</span><span class="p">]</span>
<span class="p">):</span>
<span class="c1"># mypy: namedtuple() expects a string literal as the first argument</span>
<span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">version_info</span> <span class="o">&lt;</span> <span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">0</span><span class="p">):</span>
<span class="n">TupleType</span> <span class="o">=</span> <span class="n">collections</span><span class="o">.</span><span class="n">namedtuple</span><span class="p">(</span><span class="n">unqual_name</span><span class="p">,</span> <span class="n">field_names</span><span class="p">)</span> <span class="c1"># type: ignore[no-redef, misc]</span>
<span class="n">TupleType</span><span class="o">.</span><span class="fm">__new__</span><span class="o">.</span><span class="vm">__defaults__</span> <span class="o">=</span> <span class="n">defaults</span> <span class="c1"># type: ignore[attr-defined]</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">TupleType</span> <span class="o">=</span> <span class="n">collections</span><span class="o">.</span><span class="n">namedtuple</span><span class="p">(</span><span class="n">unqual_name</span><span class="p">,</span> <span class="n">field_names</span><span class="p">,</span> <span class="n">defaults</span><span class="o">=</span><span class="n">defaults</span><span class="p">)</span> <span class="c1"># type: ignore[call-arg, no-redef, misc]</span>
<span class="n">TupleType</span> <span class="o">=</span> <span class="n">collections</span><span class="o">.</span><span class="n">namedtuple</span><span class="p">(</span><span class="n">unqual_name</span><span class="p">,</span> <span class="n">field_names</span><span class="p">,</span> <span class="n">defaults</span><span class="o">=</span><span class="n">defaults</span><span class="p">)</span> <span class="c1"># type: ignore[call-arg, no-redef, misc]</span>
<span class="k">return</span> <span class="n">TupleType</span><span class="p">(</span><span class="o">*</span><span class="n">t</span><span class="p">)</span>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


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

<div class="version">
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git1e0c57b ) &#x25BC</a>
<a href='https://pytorch.org/docs/versions.html'>master (2.0.0a0+git0247ed2 ) &#x25BC</a>
</div>


Expand Down
Loading

0 comments on commit 08646de

Please sign in to comment.