Skip to content

Commit c769778

Browse files
committed
Generate Python docs from pytorch/pytorch@b14b3f4
1 parent 91591e4 commit c769778

File tree

846 files changed

+7814
-10337
lines changed

Some content is hidden

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

846 files changed

+7814
-10337
lines changed

docs/master/__config__.html

+9-12
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,10 @@
184184
<div class="pytorch-menu pytorch-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
185185
<div class="pytorch-left-menu-search">
186186

187-
188-
189-
190-
191-
<div class="version">
192-
master (1.9.0a0+git3f71714 )
193-
</div>
194-
195-
196-
197-
187+
<div class="version">
188+
<a href='https://pytorch.org/docs/versions.html'>master (1.9.0a0+gitb14b3f4 ) &#x25BC</a>
189+
</div>
190+
198191

199192

200193

@@ -208,17 +201,18 @@
208201
</form>
209202
</div>
210203

211-
212204
</div>
213205

214206

207+
215208
<div>
216209
<a style="color:#F05732" href="https://pytorch.org/docs/stable/__config__.html">
217210
You are viewing unstable developer preview docs.
218211
Click here to view docs for latest stable release.
219212
</a>
220213
</div>
221214

215+
222216

223217

224218

@@ -477,6 +471,9 @@
477471
});
478472
</script>
479473

474+
<script script type="text/javascript">
475+
var collapsedSections = ['Notes', 'Language Bindings', 'Libraries', 'Community'];
476+
</script>
480477
<script>
481478
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
482479
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

docs/master/_modules/index.html

+9-12
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,10 @@
183183
<div class="pytorch-menu pytorch-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
184184
<div class="pytorch-left-menu-search">
185185

186-
187-
188-
189-
190-
<div class="version">
191-
master (1.9.0a0+git3f71714 )
192-
</div>
193-
194-
195-
196-
186+
<div class="version">
187+
<a href='https://pytorch.org/docs/versions.html'>master (1.9.0a0+gitb14b3f4 ) &#x25BC</a>
188+
</div>
189+
197190

198191

199192

@@ -207,17 +200,18 @@
207200
</form>
208201
</div>
209202

210-
211203
</div>
212204

213205

206+
214207
<div>
215208
<a style="color:#F05732" href="https://pytorch.org/docs/stable/_modules/index.html">
216209
You are viewing unstable developer preview docs.
217210
Click here to view docs for latest stable release.
218211
</a>
219212
</div>
220213

214+
221215

222216

223217

@@ -652,6 +646,9 @@ <h1>All modules for which code is available</h1>
652646
});
653647
</script>
654648

649+
<script script type="text/javascript">
650+
var collapsedSections = ['Notes', 'Language Bindings', 'Libraries', 'Community'];
651+
</script>
655652
<script>
656653
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
657654
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

docs/master/_modules/torch.html

+53-56
Large diffs are not rendered by default.

docs/master/_modules/torch/__config__.html

+9-12
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,10 @@
183183
<div class="pytorch-menu pytorch-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
184184
<div class="pytorch-left-menu-search">
185185

186-
187-
188-
189-
190-
<div class="version">
191-
master (1.9.0a0+git3f71714 )
192-
</div>
193-
194-
195-
196-
186+
<div class="version">
187+
<a href='https://pytorch.org/docs/versions.html'>master (1.9.0a0+gitb14b3f4 ) &#x25BC</a>
188+
</div>
189+
197190

198191

199192

@@ -207,17 +200,18 @@
207200
</form>
208201
</div>
209202

210-
211203
</div>
212204

213205

206+
214207
<div>
215208
<a style="color:#F05732" href="https://pytorch.org/docs/stable/_modules/torch/__config__.html">
216209
You are viewing unstable developer preview docs.
217210
Click here to view docs for latest stable release.
218211
</a>
219212
</div>
220213

214+
221215

222216

223217

@@ -469,6 +463,9 @@ <h1>Source code for torch.__config__</h1><div class="highlight"><pre>
469463
});
470464
</script>
471465

466+
<script script type="text/javascript">
467+
var collapsedSections = ['Notes', 'Language Bindings', 'Libraries', 'Community'];
468+
</script>
472469
<script>
473470
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
474471
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

docs/master/_modules/torch/_jit_internal.html

+14-17
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,10 @@
183183
<div class="pytorch-menu pytorch-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
184184
<div class="pytorch-left-menu-search">
185185

186-
187-
188-
189-
190-
<div class="version">
191-
master (1.9.0a0+git3f71714 )
192-
</div>
193-
194-
195-
196-
186+
<div class="version">
187+
<a href='https://pytorch.org/docs/versions.html'>master (1.9.0a0+gitb14b3f4 ) &#x25BC</a>
188+
</div>
189+
197190

198191

199192

@@ -207,17 +200,18 @@
207200
</form>
208201
</div>
209202

210-
211203
</div>
212204

213205

206+
214207
<div>
215208
<a style="color:#F05732" href="https://pytorch.org/docs/stable/_modules/torch/_jit_internal.html">
216209
You are viewing unstable developer preview docs.
217210
Click here to view docs for latest stable release.
218211
</a>
219212
</div>
220213

214+
221215

222216

223217

@@ -820,7 +814,7 @@ <h1>Source code for torch._jit_internal</h1><div class="highlight"><pre>
820814
<span class="s2">&quot;if this method is not scripted, copy the python method onto the scripted model&quot;</span>
821815

822816

823-
<span class="k">def</span> <span class="nf">export</span><span class="p">(</span><span class="n">fn</span><span class="p">):</span>
817+
<div class="viewcode-block" id="export"><a class="viewcode-back" href="../../jit.html#torch.jit.export">[docs]</a><span class="k">def</span> <span class="nf">export</span><span class="p">(</span><span class="n">fn</span><span class="p">):</span>
824818
<span class="sd">&quot;&quot;&quot;</span>
825819
<span class="sd"> This decorator indicates that a method on an ``nn.Module`` is used as an entry point into a</span>
826820
<span class="sd"> :class:`ScriptModule` and should be compiled.</span>
@@ -863,7 +857,7 @@ <h1>Source code for torch._jit_internal</h1><div class="highlight"><pre>
863857
<span class="sd"> m = torch.jit.script(MyModule())</span>
864858
<span class="sd"> &quot;&quot;&quot;</span>
865859
<span class="n">fn</span><span class="o">.</span><span class="n">_torchscript_modifier</span> <span class="o">=</span> <span class="n">FunctionModifiers</span><span class="o">.</span><span class="n">EXPORT</span>
866-
<span class="k">return</span> <span class="n">fn</span>
860+
<span class="k">return</span> <span class="n">fn</span></div>
867861

868862

869863
<div class="viewcode-block" id="unused"><a class="viewcode-back" href="../../generated/torch.jit.unused.html#torch.jit.unused">[docs]</a><span class="k">def</span> <span class="nf">unused</span><span class="p">(</span><span class="n">fn</span><span class="p">):</span>
@@ -1245,7 +1239,7 @@ <h1>Source code for torch._jit_internal</h1><div class="highlight"><pre>
12451239
<span class="nb">globals</span><span class="p">()[</span><span class="sa">f</span><span class="s2">&quot;BroadcastingList</span><span class="si">{</span><span class="n">i</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="n">BroadcastingList1</span>
12461240

12471241

1248-
<div class="viewcode-block" id="is_scripting"><a class="viewcode-back" href="../../jit_language_reference.html#torch.jit.is_scripting">[docs]</a><span class="k">def</span> <span class="nf">is_scripting</span><span class="p">():</span>
1242+
<span class="k">def</span> <span class="nf">is_scripting</span><span class="p">():</span>
12491243
<span class="sa">r</span><span class="sd">&quot;&quot;&quot;</span>
12501244
<span class="sd"> Function that returns True when in compilation and False otherwise. This</span>
12511245
<span class="sd"> is useful especially with the @unused decorator to leave code in your</span>
@@ -1259,12 +1253,12 @@ <h1>Source code for torch._jit_internal</h1><div class="highlight"><pre>
12591253
<span class="sd"> return x</span>
12601254

12611255
<span class="sd"> def linear(x):</span>
1262-
<span class="sd"> if not torch.jit.is_scripting():</span>
1256+
<span class="sd"> if torch.jit.is_scripting():</span>
12631257
<span class="sd"> return torch.linear(x)</span>
12641258
<span class="sd"> else:</span>
12651259
<span class="sd"> return unsupported_linear_op(x)</span>
12661260
<span class="sd"> &quot;&quot;&quot;</span>
1267-
<span class="k">return</span> <span class="kc">False</span></div>
1261+
<span class="k">return</span> <span class="kc">False</span>
12681262

12691263

12701264
<span class="c1"># Retrieves a fully-qualified name (module hierarchy + classname) for a given obj.</span>
@@ -1558,6 +1552,9 @@ <h1>Source code for torch._jit_internal</h1><div class="highlight"><pre>
15581552
});
15591553
</script>
15601554

1555+
<script script type="text/javascript">
1556+
var collapsedSections = ['Notes', 'Language Bindings', 'Libraries', 'Community'];
1557+
</script>
15611558
<script>
15621559
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
15631560
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

docs/master/_modules/torch/_lobpcg.html

+9-12
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,10 @@
183183
<div class="pytorch-menu pytorch-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
184184
<div class="pytorch-left-menu-search">
185185

186-
187-
188-
189-
190-
<div class="version">
191-
master (1.9.0a0+git3f71714 )
192-
</div>
193-
194-
195-
196-
186+
<div class="version">
187+
<a href='https://pytorch.org/docs/versions.html'>master (1.9.0a0+gitb14b3f4 ) &#x25BC</a>
188+
</div>
189+
197190

198191

199192

@@ -207,17 +200,18 @@
207200
</form>
208201
</div>
209202

210-
211203
</div>
212204

213205

206+
214207
<div>
215208
<a style="color:#F05732" href="https://pytorch.org/docs/stable/_modules/torch/_lobpcg.html">
216209
You are viewing unstable developer preview docs.
217210
Click here to view docs for latest stable release.
218211
</a>
219212
</div>
220213

214+
221215

222216

223217

@@ -1567,6 +1561,9 @@ <h1>Source code for torch._lobpcg</h1><div class="highlight"><pre>
15671561
});
15681562
</script>
15691563

1564+
<script script type="text/javascript">
1565+
var collapsedSections = ['Notes', 'Language Bindings', 'Libraries', 'Community'];
1566+
</script>
15701567
<script>
15711568
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
15721569
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

docs/master/_modules/torch/_lowrank.html

+9-12
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,10 @@
183183
<div class="pytorch-menu pytorch-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
184184
<div class="pytorch-left-menu-search">
185185

186-
187-
188-
189-
190-
<div class="version">
191-
master (1.9.0a0+git3f71714 )
192-
</div>
193-
194-
195-
196-
186+
<div class="version">
187+
<a href='https://pytorch.org/docs/versions.html'>master (1.9.0a0+gitb14b3f4 ) &#x25BC</a>
188+
</div>
189+
197190

198191

199192

@@ -207,17 +200,18 @@
207200
</form>
208201
</div>
209202

210-
211203
</div>
212204

213205

206+
214207
<div>
215208
<a style="color:#F05732" href="https://pytorch.org/docs/stable/_modules/torch/_lowrank.html">
216209
You are viewing unstable developer preview docs.
217210
Click here to view docs for latest stable release.
218211
</a>
219212
</div>
220213

214+
221215

222216

223217

@@ -726,6 +720,9 @@ <h1>Source code for torch._lowrank</h1><div class="highlight"><pre>
726720
});
727721
</script>
728722

723+
<script script type="text/javascript">
724+
var collapsedSections = ['Notes', 'Language Bindings', 'Libraries', 'Community'];
725+
</script>
729726
<script>
730727
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
731728
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

0 commit comments

Comments
 (0)