Skip to content

Commit dddc12e

Browse files
authored
Merge pull request #5 from pytorch/master
merge from master
2 parents 6dce389 + c0546eb commit dddc12e

File tree

633 files changed

+228595
-20268
lines changed

Some content is hidden

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

633 files changed

+228595
-20268
lines changed

_data/wizard.yml

+127-55
Large diffs are not rendered by default.

_sass/_home.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169

170170
&.python {
171171
.btn {
172-
width: (91% / 3);
172+
width: (91% / 4);
173173
margin-right: 2%;
174174
}
175175
}

docs/0.3.0/nn.html

+92-84
Original file line numberDiff line numberDiff line change
@@ -5,82 +5,82 @@
55
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
66
<head>
77
<meta charset="utf-8">
8-
8+
99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
10-
10+
1111
<title>torch.nn &mdash; PyTorch master documentation</title>
12-
1312

14-
15-
16-
17-
1813

19-
2014

21-
22-
23-
2415

25-
2616

27-
28-
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+
27+
28+
2929
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
30-
31-
30+
31+
3232
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
33-
34-
33+
34+
3535
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato" type="text/css" />
36-
36+
3737
<link rel="stylesheet" href="_static/css/pytorch_theme.css" type="text/css" />
38-
3938

40-
39+
40+
4141
<link rel="index" title="Index"
4242
href="genindex.html"/>
4343
<link rel="search" title="Search" href="search.html"/>
4444
<link rel="top" title="PyTorch master documentation" href="index.html"/>
4545
<link rel="next" title="torch.optim" href="optim.html"/>
46-
<link rel="prev" title="torch.Storage" href="storage.html"/>
46+
<link rel="prev" title="torch.Storage" href="storage.html"/>
47+
4748

48-
4949
<script src="_static/js/modernizr.min.js"></script>
5050

5151
</head>
5252

5353
<body class="wy-body-for-nav" role="document">
5454

55-
55+
5656
<div class="wy-grid-for-nav">
5757

58-
58+
5959
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
6060
<div class="wy-side-scroll">
6161
<div class="wy-side-nav-search">
62-
6362

64-
63+
64+
6565
<a href="index.html">
66-
6766

68-
69-
67+
68+
69+
7070
<img src="_static/pytorch-logo-dark.svg" class="logo" />
71-
71+
7272
</a>
7373

74-
75-
76-
74+
75+
76+
7777
<div class="version">
7878
0.3.0 <br/> <a href="http://pytorch.org/docs/versions.html"> version selector &#x25BC</a>
7979
</div>
80-
81-
8280

83-
81+
82+
83+
8484
<div role="search">
8585
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
8686
<input type="text" name="q" placeholder="Search docs" />
@@ -89,16 +89,16 @@
8989
</form>
9090
</div>
9191

92-
92+
9393
</div>
9494

9595
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
96-
97-
98-
99-
100-
101-
96+
97+
98+
99+
100+
101+
102102
<p class="caption"><span class="caption-text">Notes</span></p>
103103
<ul>
104104
<li class="toctree-l1"><a class="reference internal" href="notes/autograd.html">Autograd mechanics</a><ul>
@@ -561,27 +561,27 @@
561561
</li>
562562
</ul>
563563

564-
565-
564+
565+
566566
</div>
567567
</div>
568568
</nav>
569569

570570
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
571571

572-
572+
573573
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
574-
574+
575575
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
576576
<a href="index.html">PyTorch</a>
577-
577+
578578
</nav>
579579

580580

581-
581+
582582
<div class="wy-nav-content">
583583
<div class="rst-content">
584-
584+
585585

586586

587587

@@ -600,28 +600,28 @@
600600
<div role="navigation" aria-label="breadcrumbs navigation">
601601

602602
<ul class="wy-breadcrumbs">
603-
603+
604604
<li><a href="index.html">Docs</a> &raquo;</li>
605-
605+
606606
<li>torch.nn</li>
607-
608-
607+
608+
609609
<li class="wy-breadcrumbs-aside">
610-
611-
610+
611+
612612
<a href="_sources/nn.rst.txt" rel="nofollow"> View page source</a>
613-
614-
613+
614+
615615
</li>
616-
616+
617617
</ul>
618618

619-
619+
620620
<hr/>
621621
</div>
622622
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
623623
<div itemprop="articleBody">
624-
624+
625625
<div class="section" id="module-torch.nn">
626626
<span id="torch-nn"></span><h1>torch.nn<a class="headerlink" href="#module-torch.nn" title="Permalink to this headline">¶</a></h1>
627627
<div class="section" id="parameters">
@@ -6716,7 +6716,7 @@ <h3><span class="hidden-section">avg_pool1d</span><a class="headerlink" href="#a
67166716
<h3><span class="hidden-section">avg_pool2d</span><a class="headerlink" href="#avg-pool2d" title="Permalink to this headline">¶</a></h3>
67176717
<dl class="function">
67186718
<dt id="torch.nn.functional.avg_pool2d">
6719-
<code class="descclassname">torch.nn.functional.</code><code class="descname">avg_pool2d</code><span class="sig-paren">(</span><em>input</em>, <em>kernel_size</em>, <em>stride=None</em>, <em>padding=0</em>, <em>ceil_mode=False</em>, <em>count_include_pad=True</em><span class="sig-paren">)</span> &#x2192; Variable<a class="headerlink" href="#torch.nn.functional.avg_pool2d" title="Permalink to this definition">¶</a></dt>
6719+
<code class="descclassname">torch.nn.functional.</code><code class="descname">avg_pool2d</code><span class="sig-paren">(</span><em>input</em>, <em>kernel_size</em>, <em>stride=None</em>, <em>padding=0</em>, <em>ceil_mode=False</em>, <em>count_include_pad=False</em><span class="sig-paren">)</span> &#x2192; Variable<a class="headerlink" href="#torch.nn.functional.avg_pool2d" title="Permalink to this definition">¶</a></dt>
67206720
<dd><p>Applies 2D average-pooling operation in kh x kw regions by step size
67216721
dh x dw steps. The number of output features is equal to the number of
67226722
input planes.</p>
@@ -6736,20 +6736,24 @@ <h3><span class="hidden-section">avg_pool2d</span><a class="headerlink" href="#a
67366736
<li><strong>ceil_mode</strong> &#8211; when True, will use <cite>ceil</cite> instead of <cite>floor</cite> in the formula
67376737
to compute the output shape. Default: <code class="docutils literal"><span class="pre">False</span></code></li>
67386738
<li><strong>count_include_pad</strong> &#8211; when True, will include the zero-padding in th
6739-
averaging calculation. Default: <code class="docutils literal"><span class="pre">True</span></code></li>
6739+
averaging calculation. Default: <code class="docutils literal"><span class="pre">False</span></code></li>
67406740
</ul>
67416741
</td>
67426742
</tr>
67436743
</tbody>
67446744
</table>
6745+
<div class="admonition warning">
6746+
<p class="first admonition-title">Warning</p>
6747+
<p class="last">Default value for <code class="xref py py-attr docutils literal"><span class="pre">count_include_pad</span></code> was <code class="docutils literal"><span class="pre">True</span></code> in versions before 0.3, and will be changed back to <code class="docutils literal"><span class="pre">True</span></code> from 0.4.1 and forward.</p>
6748+
</div>
67456749
</dd></dl>
67466750

67476751
</div>
67486752
<div class="section" id="avg-pool3d">
67496753
<h3><span class="hidden-section">avg_pool3d</span><a class="headerlink" href="#avg-pool3d" title="Permalink to this headline">¶</a></h3>
67506754
<dl class="function">
67516755
<dt id="torch.nn.functional.avg_pool3d">
6752-
<code class="descclassname">torch.nn.functional.</code><code class="descname">avg_pool3d</code><span class="sig-paren">(</span><em>input</em>, <em>kernel_size</em>, <em>stride=None</em>, <em>padding=0</em>, <em>ceil_mode=False</em>, <em>count_include_pad=True</em><span class="sig-paren">)</span> &#x2192; Variable<a class="headerlink" href="#torch.nn.functional.avg_pool3d" title="Permalink to this definition">¶</a></dt>
6756+
<code class="descclassname">torch.nn.functional.</code><code class="descname">avg_pool3d</code><span class="sig-paren">(</span><em>input</em>, <em>kernel_size</em>, <em>stride=None</em>, <em>padding=0</em>, <em>ceil_mode=False</em>, <em>count_include_pad=False</em><span class="sig-paren">)</span> &#x2192; Variable<a class="headerlink" href="#torch.nn.functional.avg_pool3d" title="Permalink to this definition">¶</a></dt>
67536757
<dd><p>Applies 3D average-pooling operation in kt x kh x kw regions by step
67546758
size dt x dh x dw steps. The number of output features is equal to the
67556759
number of input planes / dt.</p>
@@ -6769,12 +6773,16 @@ <h3><span class="hidden-section">avg_pool3d</span><a class="headerlink" href="#a
67696773
<li><strong>ceil_mode</strong> &#8211; when True, will use <cite>ceil</cite> instead of <cite>floor</cite> in the formula
67706774
to compute the output shape</li>
67716775
<li><strong>count_include_pad</strong> &#8211; when True, will include the zero-padding in th
6772-
averaging calculation</li>
6776+
averaging calculation. Default: <code class="docutils literal"><span class="pre">False</span></code></li>
67736777
</ul>
67746778
</td>
67756779
</tr>
67766780
</tbody>
67776781
</table>
6782+
<div class="admonition warning">
6783+
<p class="first admonition-title">Warning</p>
6784+
<p class="last">Default value for <code class="xref py py-attr docutils literal"><span class="pre">count_include_pad</span></code> was <code class="docutils literal"><span class="pre">True</span></code> in versions before 0.3, and will be changed back to <code class="docutils literal"><span class="pre">True</span></code> from 0.4.1 and forward.</p>
6785+
</div>
67786786
</dd></dl>
67796787

67806788
</div>
@@ -8435,20 +8443,20 @@ <h1>torch.nn.init<a class="headerlink" href="#torch-nn-init" title="Permalink to
84358443

84368444
</div>
84378445
<div class="articleComments">
8438-
8446+
84398447
</div>
84408448
</div>
84418449
<footer>
8442-
8450+
84438451
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
8444-
8452+
84458453
<a href="optim.html" class="btn btn-neutral float-right" title="torch.optim" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
8446-
8447-
8454+
8455+
84488456
<a href="storage.html" class="btn btn-neutral" title="torch.Storage" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
8449-
8457+
84508458
</div>
8451-
8459+
84528460

84538461
<hr/>
84548462

@@ -8458,7 +8466,7 @@ <h1>torch.nn.init<a class="headerlink" href="#torch-nn-init" title="Permalink to
84588466

84598467
</p>
84608468
</div>
8461-
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
8469+
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
84628470

84638471
</footer>
84648472

@@ -8468,10 +8476,10 @@ <h1>torch.nn.init<a class="headerlink" href="#torch-nn-init" title="Permalink to
84688476
</section>
84698477

84708478
</div>
8471-
84728479

84738480

8474-
8481+
8482+
84758483

84768484
<script type="text/javascript">
84778485
var DOCUMENTATION_OPTIONS = {
@@ -8489,22 +8497,22 @@ <h1>torch.nn.init<a class="headerlink" href="#torch-nn-init" title="Permalink to
84898497
<script type="text/javascript" src="_static/doctools.js"></script>
84908498
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
84918499

8492-
84938500

8494-
8495-
8501+
8502+
8503+
84968504
<script type="text/javascript" src="_static/js/theme.js"></script>
8497-
84988505

8499-
8500-
8506+
8507+
8508+
85018509
<script type="text/javascript">
85028510
jQuery(function () {
85038511
SphinxRtdTheme.StickyNav.enable();
85048512
});
85058513
</script>
8506-
8507-
8514+
8515+
85088516
<script>
85098517
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
85108518
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

0 commit comments

Comments
 (0)