提交 953e2f77 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Do not test for pickleing in debug mode since it should not work

上级 9adc1d11
...@@ -706,6 +706,8 @@ class T_loading_and_saving(unittest.TestCase): ...@@ -706,6 +706,8 @@ class T_loading_and_saving(unittest.TestCase):
my_obj = theano.function([theano.In(x, borrow=True)] my_obj = theano.function([theano.In(x, borrow=True)]
, theano.Out(y, borrow=True)) , theano.Out(y, borrow=True))
mode_instance = theano.compile.mode.get_mode(None)
if not isinstance(mode_instance, theano.compile.debugmode.DebugMode):
f = file('obj.save', 'wb') f = file('obj.save', 'wb')
cPickle.dump(my_obj, f, protocol=cPickle.HIGHEST_PROTOCOL) cPickle.dump(my_obj, f, protocol=cPickle.HIGHEST_PROTOCOL)
f.close() f.close()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论