提交 420d4d0f authored 作者: Ian Goodfellow's avatar Ian Goodfellow

removed some broken tests--they were passing bad arguments to Lop and

Lop wasn't complaining because it had no input validation. Razvan wrote these tests and doesn't remember what they were meant to do, so I am removing them.
上级 e8a66108
...@@ -341,15 +341,9 @@ class test_RopLop(RopLop_checker): ...@@ -341,15 +341,9 @@ class test_RopLop(RopLop_checker):
rop_out2 = tensor.Rop((m, v, m + v), [m, v], [m_, v_]) rop_out2 = tensor.Rop((m, v, m + v), [m, v], [m_, v_])
assert isinstance(rop_out2, tuple) assert isinstance(rop_out2, tuple)
assert len(rop_out2) == 3 assert len(rop_out2) == 3
lop_out1 = tensor.Lop([m, v, m + v], (m, v), [m_, v_])
assert isinstance(lop_out1, tuple)
assert len(lop_out1) == 2
lop_out2 = tensor.Lop((m, v, m + v), [m, v], [m_, v_])
assert isinstance(lop_out2, list)
assert len(lop_out2) == 2
all_outs = [] all_outs = []
for o in rop_out1, rop_out2, lop_out1, lop_out2: for o in rop_out1, rop_out2:
all_outs.extend(o) all_outs.extend(o)
f = theano.function([m, v, m_, v_], all_outs) f = theano.function([m, v, m_, v_], all_outs)
f(mval, vval, m_val, v_val) f(mval, vval, m_val, v_val)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论