AttributeError:模块“ tensorflow._api.v2.config”在tensorflow-backend.py中没有属性“ experimental_list_devices”

时间:2020-06-28 06:37:14

标签: python tensorflow neural-network model

在开始模型训练过程时出现以下错误,我该如何解决,请帮助我。

AttributeError跟踪(最近一次通话最后一次)

在()中 1#网络定义 ----> 2个base_network = create_base_network_signet(input_shape) 3 4 input_a =输入(shape =(input_shape)) 5 input_b = Input(shape =(input_shape))

17帧

_get_available_gpus()中的

/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py 504_LOCAL_DEVICES = [设备中x的x.name] 505其他: -> 506 _LOCAL_DEVICES = tf.config.experimental_list_devices() 507返回[如果x.lower()中的'device:gpu',则_LOCAL_DEVICES中的x用于x 508

AttributeError:模块'tensorflow._api.v2.config'没有属性'experimental_list_devices'

0 个答案:

没有答案