要查看TensorFlow的配置是否成功,可以在Python代碼中使用以下方法:
import tensorflow as tf
print("TensorFlow version: ", tf.__version__)
print("Is TensorFlow using GPU: ", tf.test.is_built_with_cuda())
print("Is TensorFlow using GPU support: ", tf.test.is_built_with_gpu_support())
這段代碼會輸出TensorFlow的版本號以及是否成功配置了GPU支持。如果輸出結果顯示TensorFlow正在使用GPU,則說明配置成功。