test.py 276 B

12345678910
  1. #!/usr/bin/env python
  2. # -*- coding:utf-8 -*-
  3. # @FileName :test.py
  4. # @Time :2025/3/5 18:11
  5. # @Author :David
  6. # @Company: shenyang JY
  7. import tensorflow as tf
  8. print("TensorFlow 版本:", tf.__version__)
  9. print("GPU 是否可用:", tf.config.list_physical_devices('GPU'))