algN/test/gpu/gputest.py

7 lines
130 B
Python
Raw Normal View History

2025-08-23 10:12:26 +08:00
import tensorflow as tf
import torch
if __name__ == '__main__':
gpu_name = torch.cuda.get_device_name(0)
print(gpu_name)