提交 11923489 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

so name fn appears

上级 692b6aa1
...@@ -3577,10 +3577,8 @@ class T_Scan(unittest.TestCase): ...@@ -3577,10 +3577,8 @@ class T_Scan(unittest.TestCase):
assert not opt_obj.belongs_to_set(scan_node2, [scan_node1]) assert not opt_obj.belongs_to_set(scan_node2, [scan_node1])
def test_remove_constants_and_unused_inputs_scan_non_seqs(self): def test_remove_constants_and_unused_inputs_scan_non_seqs(self):
"""Test the opt remove_constants_and_unused_inputs_scan for #Test the opt remove_constants_and_unused_inputs_scan for
non sequences. #non sequences.
"""
W = theano.tensor.matrix(name='W') W = theano.tensor.matrix(name='W')
v = theano.tensor.ivector(name='v') v = theano.tensor.ivector(name='v')
y1, _ = theano.scan(lambda i, W: W[i], sequences=v, y1, _ = theano.scan(lambda i, W: W[i], sequences=v,
...@@ -3616,10 +3614,7 @@ class T_Scan(unittest.TestCase): ...@@ -3616,10 +3614,7 @@ class T_Scan(unittest.TestCase):
assert (len(inp) == len(set(inp))) assert (len(inp) == len(set(inp)))
def test_remove_constants_and_unused_inputs_scan_seqs(self): def test_remove_constants_and_unused_inputs_scan_seqs(self):
""" #Test the opt remove_constants_and_unused_inputs_scan for sequences.
Test the opt remove_constants_and_unused_inputs_scan for sequences.
"""
W = theano.tensor.matrix(name='W') W = theano.tensor.matrix(name='W')
v = theano.tensor.ivector(name='v') v = theano.tensor.ivector(name='v')
vv = theano.tensor.matrix(name='vv') vv = theano.tensor.matrix(name='vv')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论