Whether an autocast scope can be opened on device_type.
Parameters
device_ typestrA device type name.
Returns
boolTrue for "metal" and "cpu", the two devices
autocast accepts; False for any other name (it is a
query, so an unknown name is an answer rather than an error).
Examples
>>> import lucid
>>> lucid.amp.is_autocast_available("cpu")
True
>>> lucid.amp.is_autocast_available("tpu")
False