属性错误:模块“tensorflow._api.v2.test”没有属性“is_gpu_avaliable”

问题描述 投票:0回答:0
AttributeError
Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_4044\3926879288.py in <module>
      1 import tensorflow as tf
----> 2 tf.test.is_gpu_avaliable(
      3     cuda_only-False, min_cuda_compute_capabiloity-None
      4 )

AttributeError: module 'tensorflow._api.v2.test' has no attribute 'is_gpu_avaliable'

The code where I am trying to check if my TensorFlow is detecting my GPU or not `

检查张量流是否在我安装的 GPU 和 CUDA 版本上运行。

tensorflow cuda nvidia
© www.soinside.com 2019 - 2024. All rights reserved.