torch_npu.npu.aclnn.allow_hf32
API接口
torch_npu.npu.aclnn.allow_hf32:bool
功能描述
设置conv算子是否支持hf32,一个属性值,对aclnn的allow_hf32属性的设置和查询,默认值为true。
参数说明
aclnn的bool类的属性。
示例
>>>res = torch.npu.aclnn.allow_hf32 res=True >>>torch.npu.aclnn.allow_hf32 = True >>>res = torch.npu.aclnn.allow_hf32 res=True >>>torch.npu.aclnn.allow_hf32 = False >>>res = torch.npu.aclnn.allow_hf32 res=False
父主题: aclnn