# tensorplay.amp.autocast_mode API Source: https://www.tensorplay.cn/docs/api/tensorplay.amp.autocast_mode.html ## Functions 2 [#](#api-tensorplay.amp.autocast_mode.get_autocast_cpu_dtype) ### get_autocast_cpu_dtype function[Full reference ↗](/docs/generated/tensorplay.amp.autocast_mode.get_autocast_cpu_dtype.html) ```python tensorplay.amp.autocast_mode.get_autocast_cpu_dtype() ``` Return the dtype to be used for CPU autocasting. > **Warning** > > Kept for backward compatibility. Prefer get_autocast_dtype(). [#](#api-tensorplay.amp.autocast_mode.get_autocast_gpu_dtype) ### get_autocast_gpu_dtype function[Full reference ↗](/docs/generated/tensorplay.amp.autocast_mode.get_autocast_gpu_dtype.html) ```python tensorplay.amp.autocast_mode.get_autocast_gpu_dtype() ``` Return the dtype to be used for CUDA autocasting. > **Warning** > > Kept for backward compatibility. Prefer get_autocast_dtype().