chay

在Python环境中输入:

import os
from tensorflow.python.client import device_lib
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "99"

if __name__ == "__main__":
    print(device_lib.list_local_devices())

输出:

[name: "/cpu:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation: 5641726301910989523
]

说明是CPU版本。

分类:

技术点:

相关文章:

  • 2021-08-30
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2022-02-15
  • 2022-01-23
  • 2022-01-04
猜你喜欢
  • 2021-04-02
  • 2021-10-18
  • 2021-06-10
  • 2022-01-01
  • 2021-11-26
  • 2022-12-23
相关资源
相似解决方案