torch_npu.npu.is_autocast_enabled()
确认autocast是否可用。
bool。
1 2
>>>torch_npu.npu.is_autocast_enabled() False