提交 4029684e authored 作者: carriepl's avatar carriepl

Update comment to mention DebugMode

上级 e4685794
...@@ -772,8 +772,9 @@ class Scan(PureOp): ...@@ -772,8 +772,9 @@ class Scan(PureOp):
# Make it so the input is automatically updated to the # Make it so the input is automatically updated to the
# output value, possibly inplace, at the end of the # output value, possibly inplace, at the end of the
# function exectution. Also, since an update is # function exectution. Also, since an update is
# defined, a default value must also be. Use an array # defined, a default value must also be (this is
# of size 0 but the right ndim and dtype. # verified by DebugMode). Use an array of size 0 but
# the right ndim and dtype.
default_val = numpy.zeros([0] * inp.ndim, default_val = numpy.zeros([0] * inp.ndim,
dtype=inp.dtype) dtype=inp.dtype)
wrapped_inp = In(variable=inp, value=default_val, wrapped_inp = In(variable=inp, value=default_val,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论