当前位置:网站首页>【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:
边栏推荐
猜你喜欢
随机推荐
leetcode 504. Base 7 七进制数 (简单)
mysql的case when如何用
关于市场后市的发展预测? 2021-05-23
存储过程详解
WiFi Association&Omnipeek抓包分析
专访|带着问题去学习,Apache DolphinScheduler 王福政
【C语言】剖析函数递归(1)
图文短视频自媒体怎么创作?如何让点击量达到10W?
[C language] Analysis of function recursion (2)
rhce第三天作业
k8s之KubeSphere部署有状态数据库中间件服务 mysql、redis、mongo
static修饰的函数有什么特点(static可以修饰所有的变量吗)
第二讲 软件生命周期
Detailed explanation of ORACLE expdp/impdp
【C语言】剖析函数递归(2)
保姆级教程:写出自己的移动应用和小程序(篇三)
数据机构---第六章图---图的遍历---选择题
Based on the flask mall administrator functions
二进制中1的个数
2022-08-02日报:2022年7月最热的10篇AI论文