提交 a17c6ee0 authored 作者: Frederic Bastien's avatar Frederic Bastien

Do PR reviews

上级 681ff967
......@@ -207,7 +207,7 @@ class Scan(PureOp):
if self.info['gpu'] or self.info['gpua']:
self._hash_inner_graph = self.info['gpu_hash']
else:
# gof don't know about SharedVariable. So add them as inputs.
# Do the missing inputs check here to have the error early.
for var in theano.gof.graph.inputs(self.outputs, self.inputs):
if var not in self.inputs and not isinstance(var, theano.Constant):
raise theano.gof.MissingInputError("ScanOp is missing an input.")
......
......@@ -4483,13 +4483,10 @@ class T_Scan(unittest.TestCase):
return tensor.dot(x, w_)
ret_strict = theano.scan(_scan_loose,
sequences=[],
outputs_info=[x0_],
n_steps=n,
strict=True)
# f_strict = theano.function([x0_], ret_strict[0][-1])
# result_strict = f_strict(x0)
sequences=[],
outputs_info=[x0_],
n_steps=n,
strict=True)
def test_monitor_mode(self):
# Test that it is possible to pass an instance of MonitorMode
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论