1
0

fix exp2 pytorch rewrite fatal train issue

This commit is contained in:
2025-11-30 22:01:56 +08:00
parent 48fcdfcc80
commit 43b807679f
13 changed files with 738 additions and 112 deletions

9
tensorflow_gpu_util.py Normal file
View File

@@ -0,0 +1,9 @@
import tensorflow as tf
def print_gpu_availability():
"""打印Tensorflow的GPU可用性"""
gpus = tf.config.list_physical_devices('GPU')
if gpus:
print("GPU is available")
else:
print("GPU is not available")