any script to test the installation of Pytorch
I have installed the pytorch, and would like to check are there any script to test whether the installation is correct, e.g., whether it can enable CUDA or not, etc?

Coming to your 1st question,
In your python script....
just add
import torch

if this gives &quot;ModuleNotFoundError: No module named 'torch'&quot;,
then your pytorch installation is not complete
And your 2nd question to check if your pytorch is using cuda,use this
torch.cuda.is_available()

this will return True if your pytorch is using cuda
