当前位置:网站首页>【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:

边栏推荐
- 【C语言】剖析函数递归(1)
- 自媒体创作怎样提高原创度,打造爆款作品?
- 未来的金融服务永远不会停歇,牛市仍将继续 2021-05-28
- Embedded system driver primary [2] - based on character device driver _ basic framework
- rhce第三天作业
- 关于Google词向量模型(googlenews-vectors-negative300.bin)的导入问题
- Reading IDEO, Design Changes Everything
- LeetCode(剑指 Offer)- 53 - II. 0~n-1中缺失的数字
- 暑假集训-week2图论
- Large and comprehensive pom file example
猜你喜欢
随机推荐
网络安全第二次作业
此次519暴跌的几点感触 2021-05-21
CSDN(成长一夏竞赛)- 最大数
Redis all
leetcode 504. Base 7 七进制数 (简单)
HALCON: 对象(object)从声明(declaration)到结束(finalization)
“二舅”火了,自媒体短视频“爆火”的基本要素,你知道吗?
关于Google词向量模型(googlenews-vectors-negative300.bin)的导入问题
How to create short images and short videos from the media?How to make the click volume reach 10W?
Awesome!Alibaba interview reference guide (Songshan version) open source sharing, programmer interview must brush
How to connect DBeaver TDengine?
【C语言】夏日一题 —— 求最大公约数和最小公倍数
SQL函数 UNIX_TIMESTAMP
【Tensorflow】AttributeError: module ‘keras.backend‘ has no attribute ‘tf‘
你接受不了60%的暴跌,就没有资格获得6000%的涨幅 2021-05-27
"Second Uncle" is popular, do you know the basic elements of "exploding" short videos from the media?
Mysql index details (with pictures and texts)
栈 && 队列
uview 2.x版本 tabbar在uniapp小程序里头点击两次才能选中图标
未来的金融服务永远不会停歇,牛市仍将继续 2021-05-28




![[C language] Analysis of function recursion (2)](/img/b1/9baa60a69d41a1823ed92001d1b0a0.png)




