提交 8509cd13 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Refactor Scan tests

- Move test description comments to docstrings - Move optimization tests to `test_opt` - Move `aesara.scan.views` tests to a new `test_views` - Move example-based tests (i.e. mostly non-functionality-focused tests) to a distinct test suite/class - Make rewrite tests specify the presence of the relevant rewrites (assuming that those tests even rely on their namesake rewrites, of course) - Miscellaneous test updates
上级 31ac6dc7
...@@ -392,8 +392,8 @@ def push_out_non_seq_scan(fgraph, node): ...@@ -392,8 +392,8 @@ def push_out_non_seq_scan(fgraph, node):
def push_out_seq_scan(fgraph, node): def push_out_seq_scan(fgraph, node):
r"""Push out the variables inside the `Scan` that depend only on constants and sequences. r"""Push out the variables inside the `Scan` that depend only on constants and sequences.
This optimization resembles `PushOutNonSeqScan` but it tries to push, out of This optimization resembles `push_out_non_seq_scan` but it tries to push--out of
the inner function, the computation that only relies on sequence and the inner function--the computation that only relies on sequence and
non-sequence inputs. The idea behind this optimization is that, when it is non-sequence inputs. The idea behind this optimization is that, when it is
possible to do so, it is generally more computationally efficient to perform possible to do so, it is generally more computationally efficient to perform
a single operation on a large tensor rather then perform that same operation a single operation on a large tensor rather then perform that same operation
......
This source diff could not be displayed because it is too large. You can view the blob instead.
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论