PyTorch Certified Associate Practice Questions - PyTorch Certified Associate (PTCA) Exam

Access More Questions
Which method moves a tensor x onto a CUDA GPU device in a device-agnostic way that also works on CPU-only machines?
Correct Answer:
x.to(device) where device is set from torch.cuda.is_available()

Access more questions from this quiz

Continue to PyTorch Certified Associate Practice Questions - PyTorch Certified Associate (PTCA) Exam for more practice questions and the full quiz experience.

Access More Questions