创建CNN层时出错:html
module ‘tensorflow_core._api.v2.config’ has no attribute ‘experimental_list_devices’git
找到以下图路径:
修改506行:github
_LOCAL_DEVICES = tf.config.experimental_list_devices()
为api
devices = tf.config.list_logical_devices() _LOCAL_DEVICES = [x.name for x in devices]