当前位置:网站首页>【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:
边栏推荐
猜你喜欢
随机推荐
uview 2.x版本 tabbar在uniapp小程序里头点击两次才能选中图标
标量替换、栈上分配、同步消除
C language improvement (3)
Summer training camp-week2 graph theory
WiFi Association&Omnipeek抓包分析
腾讯安全发布Tencent Cloud EdgeOne,为企业出海打造安全加速一体化服务
Flutter 实现光影变换的立体旋转效果
How to do short video food from the media?5 steps to teach you to get started quickly
Large and comprehensive pom file example
二进制中1的个数
WiFi Association & Omnipeek Packet Capture Analysis
此次519暴跌的几点感触 2021-05-21
多个驻外使领馆发提醒 事关赴华出行、人身财产安全
好用的php空间,推荐国内三个优质的免费PHP空间[通俗易懂]
二分查找 && 树
[C language] Analysis of function recursion (2)
HALCON: 对象(object)从声明(declaration)到结束(finalization)
CSDN(成长一夏竞赛)- 最大数
"Second Uncle" is popular, do you know the basic elements of "exploding" short videos from the media?
【学习笔记】数位dp