API symbolsset_autocast_enabledCopyCopy as MarkdownCopy page linkView MarkdownDownload .mdOpenAIOpen in ChatGPTClaudeOpen in ClaudePerplexityOpen in PerplexityGrokOpen in Grok tensorplay.set_autocast_enabled tensorplay.set_autocast_enabled(device_type: str, enabled: bool) → None Help improve this pageFound an error, an unclear step, or a missing example?Was this page helpful?YesNoSuggest an editReport an issuetensorplay.set_autocast_dtypePrevious Pagetensorplay.set_default_deviceSets the default tensorplay.Tensor to be allocated on device . This does not affect factory function calls which are called with an explicit device argument. Factory calls will be performed as if they were passed device