您好,欢迎来到微智科技网。
搜索
您的当前位置:首页tensorflow_core._api.v2.io.gfile has no attribute get_filesystem 问题

tensorflow_core._api.v2.io.gfile has no attribute get_filesystem 问题

来源:微智科技网

‘tensorflow_core._api.v2.io.gfile’ has no attribute ‘get_filesystem’

链接:
博主在学习PyTorch官网Tensorboard的tutorial时,运行这段代码

writer.add_embedding(features,metadata=class_labels,\
label_img=images.unsqueeze(1))writer.close()

时会出现如上问题
尝试卸载tensorflow,创建新环境(只包含pytorch),但还会出现
所以我直接在tensorboard.writer.py文件中加入

import tensorboard as tb
tf.io.gfile = tb.compat.tensorflow_stub.io.gfile

成功解决

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- 7swz.com 版权所有 赣ICP备2024042798号-8

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务