torch_npu.npu.get_autocast_dtype()
在amp场景获取设备支持的数据类型,该dtype由torch_npu.npu.set_autocast_dtype设置或者默认数据类型torch.float16。
无参数。
torch.dtype
无