当前位置:网站首页>【Tensorflow】AttributeError: '_TfDeviceCaptureOp' object has no attribute '_set_device_from_string'
【Tensorflow】AttributeError: '_TfDeviceCaptureOp' object has no attribute '_set_device_from_string'
2022-08-02 14:00:00 【there2belief】
Question:
When using keras' multi_gpu_model
from keras.utils import multi_gpu_modelmodel = load_model()p_model = multi_gpu_model(model)An error occurred:
AttributeError: '_TfDeviceCaptureOp' object has no attribute '_set_device_from_string'The operating environment is:
tensorflow=1.15.0
keras=2.2.4
Resolve:
The reason for this error is The two versions do not match. Using keras=2.2.4 requires a matching tensorflow version, such as 1.13.1.If you want to use tensorflow1.15.0, you can use keras=2.3.1.
Version match reference:

边栏推荐
- 巴比特 | 元宇宙每日必读:蒂芙尼宣布推出限量版 CryptoPunk 定制吊坠
- 玉溪卷烟厂通过正确选择时序数据库 轻松应对超万亿行数据
- 目标检测场景SSD-Mobilenetv1-FPN
- Detailed explanation of stored procedures
- 保姆级教程:写出自己的移动应用和小程序(篇三)
- Differences and concepts between software testing and hardware testing
- 关于Google词向量模型(googlenews-vectors-negative300.bin)的导入问题
- C语言提高篇(三)
- Selenium本地打开远程浏览器
- 大而全的pom文件示例
猜你喜欢
随机推荐
微信小程序如何实现支付功能?看官方文档头疼(使用云函数的方式操作)「建议收藏」
rhce第三天作业
文件加密软件有哪些?保障你的文件安全
“二舅”火了,自媒体短视频“爆火”的基本要素,你知道吗?
C# 编译错误:Compiler Error CS1044
Differences and concepts between software testing and hardware testing
How to improve the originality of self-media creation and create popular works?
微信小程序-最近动态滚动实现
网络安全第二次作业
【C语言】夏日一题 —— 求最大公约数和最小公倍数
mysql的case when如何用
方舟生存进化淘宝面板服务器是怎么一回事?
乐心湖‘s Blog——MySQL入门到精通 —— 囊括 MySQL 入门 以及 SQL 语句优化 —— 索引原理 —— 性能分析 —— 存储引擎特点以及选择 —— 面试题
Detailed explanation of stored procedures
大而全的pom文件示例
第二届中国Rust开发者大会(RustChinaConf 2021~2022)线上大会正式开启报名
【ONE·Data || 排序入门】
保姆级教程:写出自己的移动应用和小程序(篇三)
CSDN(成长一夏竞赛)- 最大数
关于Google词向量模型(googlenews-vectors-negative300.bin)的导入问题









