提交 4d9adc1f authored 作者: Caglar's avatar Caglar

fixed the docstring.

上级 752f1f73
...@@ -212,9 +212,8 @@ def remove_constants_and_unused_inputs_scan(node): ...@@ -212,9 +212,8 @@ def remove_constants_and_unused_inputs_scan(node):
# It should be possible to change it to a local opt. # It should be possible to change it to a local opt.
class PushOutNonSeqScan(gof.Optimizer): class PushOutNonSeqScan(gof.Optimizer):
""" """
A global optimizer for pushing out the variables inside the scan that A global optimizer for pushing out the variables inside the scan that depend
are not used by the scan. only on non-sequences.
""" """
def __init__(self): def __init__(self):
...@@ -411,9 +410,8 @@ class PushOutNonSeqScan(gof.Optimizer): ...@@ -411,9 +410,8 @@ class PushOutNonSeqScan(gof.Optimizer):
# It should be possible to change it to a local opt. # It should be possible to change it to a local opt.
class PushOutSeqScan(gof.Optimizer): class PushOutSeqScan(gof.Optimizer):
""" """
A global optimizer for pushing out the input variables that are not being A global optimizer for pushing out the variables inside the
used inside the scan and provided in the sequences. scan that depend only on constants and sequences.
""" """
def __init__(self): def __init__(self):
...@@ -659,7 +657,6 @@ class PushOutScanOutput(gof.Optimizer): ...@@ -659,7 +657,6 @@ class PushOutScanOutput(gof.Optimizer):
""" """
This is an optimization that can push operations performed This is an optimization that can push operations performed
at the end of the inner graph of scan to outside of scan. at the end of the inner graph of scan to outside of scan.
""" """
def __init__(self): def __init__(self):
...@@ -709,7 +706,7 @@ class PushOutScanOutput(gof.Optimizer): ...@@ -709,7 +706,7 @@ class PushOutScanOutput(gof.Optimizer):
The Dot product is pushed out of the scan and its inputs are The Dot product is pushed out of the scan and its inputs are
now the original matrix and a new matrix obtained by now the original matrix and a new matrix obtained by
concatenating the vectors into a matrix. concatenating the vectors into a matrix.
""" """
# Ensure that the output of the Dot is used in the outer # Ensure that the output of the Dot is used in the outer
# graph to avoid apply the optimization needlessly # graph to avoid apply the optimization needlessly
...@@ -723,7 +720,7 @@ class PushOutScanOutput(gof.Optimizer): ...@@ -723,7 +720,7 @@ class PushOutScanOutput(gof.Optimizer):
non-sequence input to scan and that the other input is a non-sequence input to scan and that the other input is a
vector and either an sequence input to scan or the result vector and either an sequence input to scan or the result
of computation in the inner function of scan. of computation in the inner function of scan.
""" """
valid_inputs = False valid_inputs = False
idx_matrix_input = -1 idx_matrix_input = -1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论