# tensorplay.is_autocast_available Source: https://www.tensorplay.cn/docs/generated/tensorplay.is_autocast_available.html ```python tensorplay.is_autocast_available(device_type: str) → bool ``` Return a bool indicating if autocast is available on device_type. Parameters: device_type ([str](https://docs.python.org/3/builtins/stdtypes.html#str)) – Device type to use. Possible values are: ‘cuda’, ‘cpu’. The type is the same as the type attribute of a [tensorplay.device](/docs/generated/tensorplay.Device.html#tensorplay.Device). Thus, you may obtain the device type of a tensor using Tensor.device.type.