tetris_theano.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:reinforcement_learning 作者: andreweskeclarke 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号