def __copy_theano(self, theano_f):
sys.setrecursionlimit(5000)
pickle.dump(theano_f,
open('/tmp/theano_model.p', 'wb'),
protocol=pickle.HIGHEST_PROTOCOL)
copied_f = pickle.load(open('/tmp/theano_model.p', 'rb'))
sys.setrecursionlimit(1000)
return copied_f
tetris_theano.py 文件源码
python
阅读 30
收藏 0
点赞 0
评论 0
评论列表
文章目录