feature_extractor.py 文件源码

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

项目:confusion 作者: abhimanyudubey 项目源码 文件源码
def write_prototxt(output_file,prototxt):
    ''' Write prototxt to file.
        Usage: write_prototxt(output_file,prototxt_dictionary) '''
    with open(output_file,'w') as f:
        if 'name' in prototxt.keys():
            f.write('name: \"'+prototxt['name']+'\" \n')
        if 'layer' in prototxt.keys():
            f.write(get_prototxt_string(prototxt['layer'],0,'layer').replace('\n\n','\n'))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号