API symbolscudaCopyCopy as MarkdownCopy page linkView MarkdownDownload .mdOpenAIOpen in ChatGPTClaudeOpen in ClaudePerplexityOpen in PerplexityGrokOpen in Grok tensorplay.cuda.temperature tensorplay.cuda.temperature(device: Any | None = None) → int[source] Return the average temperature of the GPU sensor in Degrees C (Centigrades). The average temperature is computed based on past sample period as given by nvidia-smi. Help improve this pageFound an error, an unclear step, or a missing example?Was this page helpful?YesNoSuggest an editReport an issuetensorplay.cuda.synchronizeWait for all kernels in all streams on a CUDA device to complete.tensorplay.cuda.utilizationReturn the percent of time over the past sample period during which one or more kernels was executing on the GPU as given by nvidia-smi .