add files

This commit is contained in:
烨玮
2025-02-20 12:17:03 +08:00
parent a21dd4555c
commit edd008441b
667 changed files with 473123 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import torch
def pytorch_cudnn_version() -> str:
message = (
f"pytorch.version={torch.__version__}, "
f"cuda.available={torch.cuda.is_available()}, "
)
if torch.backends.cudnn.enabled:
message += (
f"cudnn.version={torch.backends.cudnn.version()}, "
f"cudnn.benchmark={torch.backends.cudnn.benchmark}, "
f"cudnn.deterministic={torch.backends.cudnn.deterministic}"
)
return message