提交 2b229277 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Added regression test for bug fixed in 24d4fd291054

上级 94060c1e
import time
import unittest
import cPickle, time, unittest
from theano.gof import Variable, Op
from theano import gof
......@@ -399,6 +397,14 @@ class test_Prod(unittest.TestCase):
fn_debug(a)
def test_pickle_bug(self):
# Regression test for bug fixed in 24d4fd291054.
o = Prod()
s = cPickle.dumps(o)
o = cPickle.loads(s)
cPickle.dumps(o)
if __name__ == '__main__':
#unittest.main()
suite = unittest.TestSuite([test_Prod('test_mul_without_zeros_zeros')])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论