tf.config.list_logical_devices报错module 'tensorflow_core._api.v2.config' has no attribute 'list_**

module 'tensorflow_core._api.v2.config' has no attribute 'list_physical_devices' 这个错误发生在TensorFlow2.0版本中,查看了源码之后解决如下 tensorflow_core._api.v2.config下只有如下的文件 而list_physical_devices在experimental文件中被导入 所以
相关文章
相关标签/搜索