API symbolscudaCopyCopy as MarkdownCopy page linkView MarkdownDownload .mdOpenAIOpen in ChatGPTClaudeOpen in ClaudePerplexityOpen in PerplexityGrokOpen in Grok Device class tensorplay.cuda.Device is_cpu(self: tensorplay._C.Device) → bool is_cuda(self: tensorplay._C.Device) → bool Help improve this pageFound an error, an unclear step, or a missing example?Was this page helpful?YesNoSuggest an editReport an issuedeviceContext-manager that changes the selected device.device_ofContext-manager that changes the current device to that of given object.