# tensorplay.is_autocast_available

Source: https://www.tensorplay.cn/docs/generated/tensorplay.is_autocast_available.html

```python
tensorplay.is_autocast_available(device_type: str) &#x2192; bool
```

Return a bool indicating if autocast is available on device_type.

Parameters:

device_type ([str](https://docs.python.org/3/library/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.
Thus, you may obtain the device type of a tensor using Tensor.device.type.
