tuoheng_algN/test/gpu/gputest.py

7 lines
130 B
Python
Raw Normal View History

2025-01-21 09:26:34 +08:00
import tensorflow as tf
import torch
if __name__ == '__main__':
gpu_name = torch.cuda.get_device_name(0)
print(gpu_name)