Files
notecast/transcription/torch_checker.py
T
svlqd ecbbbfd5d1 Minor update
- added transcription folder with checker and transcription modules
- logger is a separated module now
2025-09-06 23:36:33 +03:00

11 lines
432 B
Python

import torch
def check_torch() -> None:
print("=== Checking PyTorch ===")
print(f"Torch version: {torch.version}")
print(f"CUDA is available: {torch.cuda.is_available()}")
if torch.cuda.is_available():
print(f"CUDA version: {torch.version.cuda}")
print(f"Number of GPU: {torch.cuda.device_count()}")
print(f"Name of GPU: {torch.cuda.get_device_name(0)}")
print("=== Check completed ===")