Skip to content

Commit 80d5069

Browse files
committed
docs: One pass left out, links were wrong
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 111857c commit 80d5069

File tree

4 files changed

+49
-8
lines changed

4 files changed

+49
-8
lines changed

docs/_sources/contributors/lowering.rst.txt

+11-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ You can see the effects of each pass by setting the log level to ``Level::kGraph
1414
Passes Used
1515
-------------
1616

17+
EliminateCommonSubexpression
18+
***********************************
19+
20+
`torch/csrc/jit/passes/common_subexpression_elimination.h <https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/common_subexpression_elimination.h>`_
21+
22+
Removes common subexpressions in the graph
23+
24+
25+
1726
Eliminate Dead Code
1827
**************************
1928

@@ -125,7 +134,7 @@ Removes _all_ tuples and raises an error if some cannot be removed, this is used
125134
Peephole Optimze
126135
***************************************
127136

128-
`torch/csrc/jit/passes/peephole_optimze.h <https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/peephole.cpp>`_
137+
`torch/csrc/jit/passes/peephole_optimze.h <https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/ppeephole_optimze.h>`_
129138

130139
The intent for this optimization pass is to catch all of the small, easy to catch peephole optimizations you might be interested in doing.
131140

@@ -177,6 +186,6 @@ Unpacks ``aten::logsoftmax`` into ``aten::softmax`` and ``aten::log``. This lets
177186
Unroll Loops
178187
***************************************
179188

180-
`torch/csrc/jit/passes/lower_tuples.h <https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/loop_unrolling.cpp>`_
189+
`torch/csrc/jit/passes/loop_unrolling.h <https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/loop_unrolling.h>`_
181190

182191
Unrolls the operations of compatable loops (e.g. sufficently short) so that you only have to go through the loop once.

docs/contributors/lowering.html

+26-3
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,11 @@
492492
</a>
493493
<nav class="md-nav">
494494
<ul class="md-nav__list">
495+
<li class="md-nav__item">
496+
<a class="md-nav__link" href="#eliminatecommonsubexpression">
497+
EliminateCommonSubexpression
498+
</a>
499+
</li>
495500
<li class="md-nav__item">
496501
<a class="md-nav__link" href="#eliminate-dead-code">
497502
Eliminate Dead Code
@@ -621,6 +626,24 @@ <h2 id="passes-used">
621626
622627
</a>
623628
</h2>
629+
<h3 id="eliminatecommonsubexpression">
630+
EliminateCommonSubexpression
631+
<a class="headerlink" href="#eliminatecommonsubexpression" title="Permalink to this headline">
632+
633+
</a>
634+
</h3>
635+
<blockquote>
636+
<div>
637+
<p>
638+
<a class="reference external" href="https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/common_subexpression_elimination.h">
639+
torch/csrc/jit/passes/common_subexpression_elimination.h
640+
</a>
641+
</p>
642+
</div>
643+
</blockquote>
644+
<p>
645+
Removes common subexpressions in the graph
646+
</p>
624647
<h3 id="eliminate-dead-code">
625648
Eliminate Dead Code
626649
<a class="headerlink" href="#eliminate-dead-code" title="Permalink to this headline">
@@ -894,7 +917,7 @@ <h3 id="peephole-optimze">
894917
<blockquote>
895918
<div>
896919
<p>
897-
<a class="reference external" href="https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/peephole.cpp">
920+
<a class="reference external" href="https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/ppeephole_optimze.h">
898921
torch/csrc/jit/passes/peephole_optimze.h
899922
</a>
900923
</p>
@@ -1094,8 +1117,8 @@ <h3 id="unroll-loops">
10941117
<blockquote>
10951118
<div>
10961119
<p>
1097-
<a class="reference external" href="https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/loop_unrolling.cpp">
1098-
torch/csrc/jit/passes/lower_tuples.h
1120+
<a class="reference external" href="https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/loop_unrolling.h">
1121+
torch/csrc/jit/passes/loop_unrolling.h
10991122
</a>
11001123
</p>
11011124
<p>

docs/searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docsrc/contributors/lowering.rst

+11-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ You can see the effects of each pass by setting the log level to ``Level::kGraph
1414
Passes Used
1515
-------------
1616

17+
EliminateCommonSubexpression
18+
***********************************
19+
20+
`torch/csrc/jit/passes/common_subexpression_elimination.h <https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/common_subexpression_elimination.h>`_
21+
22+
Removes common subexpressions in the graph
23+
24+
25+
1726
Eliminate Dead Code
1827
**************************
1928

@@ -125,7 +134,7 @@ Removes _all_ tuples and raises an error if some cannot be removed, this is used
125134
Peephole Optimze
126135
***************************************
127136

128-
`torch/csrc/jit/passes/peephole_optimze.h <https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/peephole.cpp>`_
137+
`torch/csrc/jit/passes/peephole_optimze.h <https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/ppeephole_optimze.h>`_
129138

130139
The intent for this optimization pass is to catch all of the small, easy to catch peephole optimizations you might be interested in doing.
131140

@@ -177,6 +186,6 @@ Unpacks ``aten::logsoftmax`` into ``aten::softmax`` and ``aten::log``. This lets
177186
Unroll Loops
178187
***************************************
179188

180-
`torch/csrc/jit/passes/lower_tuples.h <https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/loop_unrolling.cpp>`_
189+
`torch/csrc/jit/passes/loop_unrolling.h <https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/passes/loop_unrolling.h>`_
181190

182191
Unrolls the operations of compatable loops (e.g. sufficently short) so that you only have to go through the loop once.

0 commit comments

Comments
 (0)