torch_npu.npu.set_autocast_enabled

torch_npu.npu.set_autocast_enabled(bool)

是否在设备上使能AMP。