(soar) C:\Users\Jon.SCORPIONE>python
Python 3.6.13 |Anaconda, Inc.|(default, Mar 162021, 11:37:27)[MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license"formore information.
输入以下指令,导入tensorflow包,若报错,则安装失败
>>>import tensorflow as tf
输入以下指令,检查GPU是否可用
>>> tf.test.is_gpu_available()
得到以下结果证明安装cuda和tensorflow成功
WARNING:tensorflow:From <stdin>:1: is_gpu_available (from tensorflow.python.framework.test_util)is
deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.config.list_physical_devices('GPU')` instead.2021-11-0914:49:50.357138: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is
optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in
performance-critical operations: AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.2021-11-0914:49:52.267842: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1510] Created device
/device:GPU:0with3967 MB memory:-> device:0, name: NVIDIA GeForce RTX 2060, pci bus id:0000:01:00.0,
compute capability:7.5True