问题描述:
module ‘tensorflow_core._api.v2.config’ has no attribute ‘experimental_list_devices’
措施
- 打开出错程序:
- 修改506行
#原始代码
_LOCAL_DEVICES = tf.config.experimental_list_devices()
#改为:
devices = tf.config.list_logical_devices()
_LOCAL_DEVICES = [x.name for x in devices]
参考
https://stackoverflow.com/questions/60581677/attributeerror-module-tensorflow-core-api-v2-config-has-no-attribute-expe
https://github.com/keras-team/keras/issues/13684