layers.py 文件源码

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

项目:fxnn 作者: khaotik 项目源码 文件源码
def save_params(self, f_, filter_=None):
        #FIXME: this does not save shared_variable properties like "strict" or "allow_downcast"
        if filter_ is None:
            pickle.dump({k:v.get_value() for k,v in self._vars_di.items()}, f_)
        else:
            pat = re.compile(filter_)
            pickle.dump({k:v.get_value() for k,v in self._vars_di.items() if pat.fullmatch(k)}, f_)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号