# tensorplay.cuda.temperature

Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.temperature.html

# tensorplay.cuda.temperature

tensorplay.cuda.temperature(device: [Any](https://docs.python.org/3/library/typing.html#typing.Any) | [None](https://docs.python.org/3/library/constants.html#None) = None) &#x2192; [int](https://docs.python.org/3/library/functions.html#int)[[source]](../_modules/tensorplay/cuda.html#temperature)

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.
