提交 63ae9bb3 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

fix corner case in running experiment

上级 59954bca
...@@ -54,6 +54,10 @@ class TestScan(unittest.TestCase): ...@@ -54,6 +54,10 @@ class TestScan(unittest.TestCase):
Number of shared variable with updates. They are all numeric. Number of shared variable with updates. They are all numeric.
""" """
# Check the scan node has at least one output
if n_outputs + n_shared_updates + len(states_info) == 0:
return
rng = numpy.random.RandomState(utt.fetch_seed()) rng = numpy.random.RandomState(utt.fetch_seed())
n_ins = len(inputs_info) n_ins = len(inputs_info)
inputs = [tensor.matrix('u%d' % k) for k in xrange(n_ins)] inputs = [tensor.matrix('u%d' % k) for k in xrange(n_ins)]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论