Merged
fix(operation): Fix Div operation using int64 dtype #6611
junnyleoAdd on Sep 22
fix(operation): Fix Div operation using int64 dtype #6611
Merged
Merged fromjunnyleo/pyptofix/div920intocann/pypto9.2.0
Total: 7 files changed+32-59
| @@ -36,15 +36,15 @@ div(input: Tensor, other: Union[Tensor, float, int], precision_type: PrecisionTy | |||
| 36 | 36 | ||
| 37 | ## 返回值说明 | 37 | ## 返回值说明 |
| 38 | 38 | ||
| 39 | -返回输出Tensor,Shape为input和other广播后大小。当输入为浮点类型时,输出数据类型与输入相同;当输入为DT_INT16或DT_INT32时,输出数据类型为DT_FP32;当输入为DT_INT64或DT_UINT64时(仅Ascend 950PR&950DT系列产品支持),输出数据类型与输入相同。 | 39 | +返回输出Tensor,Shape为input和other广播后大小。 |
| 40 | +当input为浮点类型时,输出Tensor数据类型与input相同;当input为整型时,输出数据类型为DT_FP32。 | ||
| 40 | 41 | ||
| 41 | ## 约束说明 | 42 | ## 约束说明 |
| 42 | 43 | ||
| 43 | -1. input和other都为Tensor时,数据类型应该相同。 | 44 | +1. input和other都为Tensor时,数据类型应该相同;input为整型类型时,other暂不支持浮点标量。 |
| 44 | -2. other为scalar时,若input为浮点类型,则scalar支持整型(自动转为浮点);若input为整型,则scalar不支持浮点类型(会报错)。 | 45 | +2. Tensor数据类型说明: |
| 45 | -3. Tensor数据类型说明: | ||
| 46 | <!-- npu="950" id7 --> | 46 | <!-- npu="950" id7 --> |
| 47 | - - Ascend 950PR&950DT系列产品:DT_FP16,DT_FP32,DT_BF16,DT_INT16,DT_INT32,DT_INT64,DT_UINT64。 | 47 | + - Ascend 950PR&950DT系列产品:DT_FP16,DT_FP32,DT_BF16,DT_INT16,DT_INT32,DT_INT64。 |
| 48 | <!-- end id7 --> | 48 | <!-- end id7 --> |
| 49 | <!-- npu="A3" id8 --> | 49 | <!-- npu="A3" id8 --> |
| 50 | - Atlas A3系列产品:DT_FP16,DT_FP32,DT_BF16,DT_INT16,DT_INT32。 | 50 | - Atlas A3系列产品:DT_FP16,DT_FP32,DT_BF16,DT_INT16,DT_INT32。 |
| @@ -52,7 +52,7 @@ div(input: Tensor, other: Union[Tensor, float, int], precision_type: PrecisionTy | |||
| 52 | <!-- npu="910b" id9 --> | 52 | <!-- npu="910b" id9 --> |
| 53 | - Atlas A2系列产品:DT_FP16,DT_FP32,DT_BF16,DT_INT16,DT_INT32。 | 53 | - Atlas A2系列产品:DT_FP16,DT_FP32,DT_BF16,DT_INT16,DT_INT32。 |
| 54 | <!-- end id9 --> | 54 | <!-- end id9 --> |
| 55 | -4. **精度模式说明**: | 55 | +3. **精度模式说明**: |
| 56 | - **HIGH_PRECISION(高精度模式)**:默认模式,在底层实现中会使用更高精度的计算方式,在不同型号上的支持情况: | 56 | - **HIGH_PRECISION(高精度模式)**:默认模式,在底层实现中会使用更高精度的计算方式,在不同型号上的支持情况: |
| 57 | <!-- npu="950" id4 --> | 57 | <!-- npu="950" id4 --> |
| 58 | - Ascend 950PR&950DT系列产品:支持 | 58 | - Ascend 950PR&950DT系列产品:支持 |
| @@ -64,8 +64,9 @@ div(input: Tensor, other: Union[Tensor, float, int], precision_type: PrecisionTy | |||
| 64 | - Atlas A2系列产品:不支持 | 64 | - Atlas A2系列产品:不支持 |
| 65 | <!-- end id6 --> | 65 | <!-- end id6 --> |
| 66 | - **INTRINSIC(指令模式)**:直接使用芯片指令进行计算。 | 66 | - **INTRINSIC(指令模式)**:直接使用芯片指令进行计算。 |
| 67 | -5. Tensor类型输入不支持`TileOpFormat.TILEOP_NZ`格式。 | 67 | +4. Tensor类型输入不支持`TileOpFormat.TILEOP_NZ`格式。 |
| 68 | -6. 整型输入约束:当输入为DT_INT16或DT_INT32时,内部会将输入转换为DT_FP32进行计算(float32尾数为24位)。在 $[-2^{24},\ 2^{24}]$ 范围内的整数可精确转换,超出范围的整数在转换时可能丢失低位精度。当输入为DT_INT64或DT_UINT64时(仅Ascend 950PR&950DT系列产品支持),不进行类型转换,直接按整数除法计算。 | 68 | +5. 整型输入约束: |
| 69 | +当输入为DT_INT16或DT_INT32或DT_INT64时,内部会将输入转换为DT_FP32进行计算(float32尾数为24位)。在 $[-2^{24},\ 2^{24}]$ 范围内的整数可精确转换,超出范围的整数在转换时可能丢失低位精度。 | ||
| 69 | 70 | ||
| 70 | ## 调用示例 | 71 | ## 调用示例 |
| 71 | 72 | ||
| @@ -14,13 +14,11 @@ PyPTO为张量计算提供了一套全面的操作,旨在为用户提供高效 | |||
| 14 | # 加法 | 14 | # 加法 |
| 15 | result = pypto.add(a, b) | 15 | result = pypto.add(a, b) |
| 16 | result = pypto.add(a, scalar) # 将标量添加到张量 | 16 | result = pypto.add(a, scalar) # 将标量添加到张量 |
| 17 | - result = pypto.add(a, b, alpha=2.0) # a + 2.0 * b | ||
| 18 | result = a + b | 17 | result = a + b |
| 19 | 18 | ||
| 20 | # 减法 | 19 | # 减法 |
| 21 | result = pypto.sub(a, b) | 20 | result = pypto.sub(a, b) |
| 22 | result = pypto.sub(a, scalar) | 21 | result = pypto.sub(a, scalar) |
| 23 | - result = pypto.sub(a, b, alpha=2.0) # a - 2.0 * b | ||
| 24 | result = a - b | 22 | result = a - b |
| 25 | 23 | ||
| 26 | # 乘法 | 24 | # 乘法 |
| @@ -162,12 +162,10 @@ Tensor Div(const Tensor& self, const Tensor& other, PrecisionType precisionType) | |||
| 162 | CheckTensorsDataTypeConsistency(self.GetStorage(), other.GetStorage(), "DIV"); | 162 | CheckTensorsDataTypeConsistency(self.GetStorage(), other.GetStorage(), "DIV"); |
| 163 | 163 | ||
| 164 | static const std::unordered_set<DataType> DIV_A2A3_TYPES = {DT_FP16, DT_FP32, DT_BF16, DT_INT16, DT_INT32}; | 164 | static const std::unordered_set<DataType> DIV_A2A3_TYPES = {DT_FP16, DT_FP32, DT_BF16, DT_INT16, DT_INT32}; |
| 165 | - static const std::unordered_set<DataType> DIV_A5_TYPES = {DT_FP16, DT_FP32, DT_BF16, DT_INT16, | 165 | + static const std::unordered_set<DataType> DIV_A5_TYPES = {DT_FP16, DT_FP32, DT_BF16, DT_INT16, DT_INT32, DT_INT64}; |
| 166 | - DT_INT32, DT_INT64, DT_UINT64}; | ||
| 167 | const auto& supportedTypes = GetSupportedDataTypesByArch(DIV_A2A3_TYPES, DIV_A5_TYPES); | 166 | const auto& supportedTypes = GetSupportedDataTypesByArch(DIV_A2A3_TYPES, DIV_A5_TYPES); |
| 168 | - auto isDivSupportedInt = [](DataType dt) { return dt == DT_INT16 || dt == DT_INT32; }; | 167 | + auto isDivSupportedInt = [](DataType dt) { return dt == DT_INT16 || dt == DT_INT32 || dt == DT_INT64; }; |
| 169 | CheckTensorDataType(self.GetStorage(), supportedTypes, "DIV"); | 168 | CheckTensorDataType(self.GetStorage(), supportedTypes, "DIV"); |
| 170 | - CheckInt64Broadcast(self.GetStorage(), other.GetStorage(), "DIV"); | ||
| 171 | 169 | ||
| 172 | if (isDivSupportedInt(self.GetDataType())) { | 170 | if (isDivSupportedInt(self.GetDataType())) { |
| 173 | Tensor castSelf = Cast(self, DT_FP32, CastMode::CAST_NONE, SaturationMode::ON); | 171 | Tensor castSelf = Cast(self, DT_FP32, CastMode::CAST_NONE, SaturationMode::ON); |
| @@ -346,19 +346,17 @@ Tensor Div(const Tensor& self, const Element& other, PrecisionType precisionType | |||
| 346 | CheckTensorFormat(self.GetStorage(), {TileOpFormat::TILEOP_NZ}, "Div"); | 346 | CheckTensorFormat(self.GetStorage(), {TileOpFormat::TILEOP_NZ}, "Div"); |
| 347 | 347 | ||
| 348 | static const std::unordered_set<DataType> DIV_A2A3_TYPES = {DT_FP16, DT_FP32, DT_BF16, DT_INT16, DT_INT32}; | 348 | static const std::unordered_set<DataType> DIV_A2A3_TYPES = {DT_FP16, DT_FP32, DT_BF16, DT_INT16, DT_INT32}; |
| 349 | - static const std::unordered_set<DataType> DIV_A5_TYPES = {DT_FP16, DT_FP32, DT_BF16, DT_INT16, | 349 | + static const std::unordered_set<DataType> DIV_A5_TYPES = {DT_FP16, DT_FP32, DT_BF16, DT_INT16, DT_INT32, DT_INT64}; |
| 350 | - DT_INT32, DT_INT64, DT_UINT64}; | ||
| 351 | const auto& supportedTypes = GetSupportedDataTypesByArch(DIV_A2A3_TYPES, DIV_A5_TYPES); | 350 | const auto& supportedTypes = GetSupportedDataTypesByArch(DIV_A2A3_TYPES, DIV_A5_TYPES); |
| 352 | - auto isDivSupportedInt = [](DataType dt) { return dt == DT_INT16 || dt == DT_INT32; }; | 351 | + auto isDivSupportedInt = [](DataType dt) { return dt == DT_INT16 || dt == DT_INT32 || dt == DT_INT64; }; |
| 353 | - auto isDiv64Int = [](DataType dt) { return dt == DT_INT64 || dt == DT_UINT64; }; | ||
| 354 | auto isDivSupportedFloat = [](DataType dt) { return dt == DT_FP16 || dt == DT_FP32 || dt == DT_BF16; }; | 352 | auto isDivSupportedFloat = [](DataType dt) { return dt == DT_FP16 || dt == DT_FP32 || dt == DT_BF16; }; |
| 355 | auto isDivSupportedScalar = [&](DataType dt) { return isDivSupportedFloat(dt) || isDivSupportedInt(dt); }; | 353 | auto isDivSupportedScalar = [&](DataType dt) { return isDivSupportedFloat(dt) || isDivSupportedInt(dt); }; |
| 356 | CheckTensorDataType(self.GetStorage(), supportedTypes, "DIV"); | 354 | CheckTensorDataType(self.GetStorage(), supportedTypes, "DIV"); |
| 357 | 355 | ||
| 358 | if (isDivSupportedInt(self.GetDataType())) { | 356 | if (isDivSupportedInt(self.GetDataType())) { |
| 359 | CHECK(VectorErrorCode::ERR_PARAM_DTYPE_UNSUPPORTED, isDivSupportedInt(other.GetDataType())) | 357 | CHECK(VectorErrorCode::ERR_PARAM_DTYPE_UNSUPPORTED, isDivSupportedInt(other.GetDataType())) |
| 360 | - << "Scalar dtype incorrect. When self dtype is integer (DT_INT16/DT_INT32), " | 358 | + << "Scalar dtype incorrect. When self dtype is integer (DT_INT16/DT_INT32/DT_INT64), " |
| 361 | - << "scalar must be DT_INT16 or DT_INT32, actual is: " << DataType2String(other.GetDataType()); | 359 | + << "scalar must be DT_INT16, DT_INT32 or DT_INT64, actual is: " << DataType2String(other.GetDataType()); |
| 362 | Tensor castSelf = Cast(self, DT_FP32, CastMode::CAST_NONE, SaturationMode::ON); | 360 | Tensor castSelf = Cast(self, DT_FP32, CastMode::CAST_NONE, SaturationMode::ON); |
| 363 | Element castOther(DT_FP32, other.Cast<float>()); | 361 | Element castOther(DT_FP32, other.Cast<float>()); |
| 364 | auto [castResult, op] = TensorBinaryOperationScalarWithOp<BinaryOpType::DIV>( | 362 | auto [castResult, op] = TensorBinaryOperationScalarWithOp<BinaryOpType::DIV>( |
| @@ -367,38 +365,18 @@ Tensor Div(const Tensor& self, const Element& other, PrecisionType precisionType | |||
| 367 | return Tensor(castResult); | 365 | return Tensor(castResult); |
| 368 | } | 366 | } |
| 369 | 367 | ||
| 370 | - if (isDiv64Int(self.GetDataType())) { | ||
| 371 | - CHECK(VectorErrorCode::ERR_PARAM_DTYPE_UNSUPPORTED, isDiv64Int(other.GetDataType())) | ||
| 372 | - << "Scalar dtype incorrect. When self dtype is DT_INT64/DT_UINT64, " | ||
| 373 | - << "scalar must be DT_INT64 or DT_UINT64, actual is: " << DataType2String(other.GetDataType()); | ||
| 374 | - auto [result, op] = TensorBinaryOperationScalarWithOp<BinaryOpType::DIV>( | ||
| 375 | - *Program::GetInstance().GetCurrentFunction(), self.GetStorage(), other); | ||
| 376 | - op->SetAttribute(OpAttributeKey::precisionType, static_cast<int64_t>(precisionType)); | ||
| 377 | - return Tensor(result); | ||
| 378 | - } | ||
| 379 | - | ||
| 380 | CHECK(VectorErrorCode::ERR_PARAM_DTYPE_UNSUPPORTED, isDivSupportedScalar(other.GetDataType())) | 368 | CHECK(VectorErrorCode::ERR_PARAM_DTYPE_UNSUPPORTED, isDivSupportedScalar(other.GetDataType())) |
| 381 | << "Scalar dtype incorrect. When self dtype is float, " | 369 | << "Scalar dtype incorrect. When self dtype is float, " |
| 382 | - << "scalar must be float (DT_FP16/DT_FP32/DT_BF16) or integer (DT_INT16/DT_INT32), " | 370 | + << "scalar must be float (DT_FP16/DT_FP32/DT_BF16) or integer (DT_INT16/DT_INT32/DT_INT64), " |
| 383 | << "actual is: " << DataType2String(other.GetDataType()); | 371 | << "actual is: " << DataType2String(other.GetDataType()); |
| 384 | 372 | ||
| 385 | if (isDivSupportedInt(other.GetDataType())) { | 373 | if (isDivSupportedInt(other.GetDataType())) { |
| 386 | - // 当 self 是 fp16/bf16 且 other 是 int32 时,cast 到 fp32 避免溢出 | 374 | + Tensor castSelf = Cast(self, DT_FP32, CastMode::CAST_NONE, SaturationMode::ON); |
| 387 | - bool needPromoteToFp32 = (self.GetDataType() != DT_FP32) && (other.GetDataType() == DT_INT32); | 375 | + Element castOther(DT_FP32, other.Cast<float>()); |
| 388 | - if (needPromoteToFp32) { | ||
| 389 | - Tensor castSelf = Cast(self, DT_FP32, CastMode::CAST_NONE, SaturationMode::ON); | ||
| 390 | - Element castOther(DT_FP32, other.Cast<float>()); | ||
| 391 | - auto [result, op] = TensorBinaryOperationScalarWithOp<BinaryOpType::DIV>( | ||
| 392 | - *Program::GetInstance().GetCurrentFunction(), castSelf.GetStorage(), castOther); | ||
| 393 | - op->SetAttribute(OpAttributeKey::precisionType, static_cast<int64_t>(precisionType)); | ||
| 394 | - return Tensor(result); | ||
| 395 | - } | ||
| 396 | - // 其他情况:other cast 到 self.dtype | ||
| 397 | - Element castOther(self.GetDataType(), other.Cast<float>()); | ||
| 398 | auto [result, op] = TensorBinaryOperationScalarWithOp<BinaryOpType::DIV>( | 376 | auto [result, op] = TensorBinaryOperationScalarWithOp<BinaryOpType::DIV>( |
| 399 | - *Program::GetInstance().GetCurrentFunction(), self.GetStorage(), castOther); | 377 | + *Program::GetInstance().GetCurrentFunction(), castSelf.GetStorage(), castOther); |
| 400 | op->SetAttribute(OpAttributeKey::precisionType, static_cast<int64_t>(precisionType)); | 378 | op->SetAttribute(OpAttributeKey::precisionType, static_cast<int64_t>(precisionType)); |
| 401 | - return Tensor(result); | 379 | + return Cast(Tensor(result), self.GetDataType(), CastMode::CAST_RINT, SaturationMode::OFF); |
| 402 | } | 380 | } |
| 403 | 381 | ||
| 404 | auto [result, op] = TensorBinaryOperationScalarWithOp<BinaryOpType::DIV>( | 382 | auto [result, op] = TensorBinaryOperationScalarWithOp<BinaryOpType::DIV>( |
| @@ -1612,7 +1612,8 @@ def gen_minimum_op_golden(case_name: str, output: Path, case_index: int = None) | |||
| 1612 | def gen_div_op_golden(case_name: str, output: Path, case_index: int = None) -> bool: | 1612 | def gen_div_op_golden(case_name: str, output: Path, case_index: int = None) -> bool: |
| 1613 | # golden开发者需要根据具体golden逻辑修改,不同注册函数内的generate_golden_files可重名 | 1613 | # golden开发者需要根据具体golden逻辑修改,不同注册函数内的generate_golden_files可重名 |
| 1614 | def golden_func(inputs: list, _config: dict): | 1614 | def golden_func(inputs: list, _config: dict): |
| 1615 | - return [inputs[0] / inputs[1]] | 1615 | + result = torch.div(from_numpy(inputs[0]), from_numpy(inputs[1])) |
| 1616 | + return [to_numpy(result)] | ||
| 1616 | 1617 | ||
| 1617 | logging.debug("Case(%s), Golden creating...", case_name) | 1618 | logging.debug("Case(%s), Golden creating...", case_name) |
| 1618 | return gen_op_golden("Div", golden_func, output, case_index) | 1619 | return gen_op_golden("Div", golden_func, output, case_index) |
| @@ -1679,7 +1680,8 @@ def gen_divs_op_golden(case_name: str, output: Path, case_index: int = None) -> | |||
| 1679 | params = config.get("params") | 1680 | params = config.get("params") |
| 1680 | params["scalar_type"] = params.get("scalar_type", "fp32") | 1681 | params["scalar_type"] = params.get("scalar_type", "fp32") |
| 1681 | params["scalar"] = get_dtype_by_name(params["scalar_type"])(params["scalar"]) | 1682 | params["scalar"] = get_dtype_by_name(params["scalar_type"])(params["scalar"]) |
| 1682 | - return [inputs[0] / params["scalar"]] | 1683 | + result = torch.div(from_numpy(inputs[0]), params["scalar"]) |
| 1684 | + return [to_numpy(result)] | ||
| 1683 | 1685 | ||
| 1684 | logging.debug("Case(%s), Golden creating...", case_name) | 1686 | logging.debug("Case(%s), Golden creating...", case_name) |
| 1685 | return gen_op_golden("Divs", golden_func, output, case_index) | 1687 | return gen_op_golden("Divs", golden_func, output, case_index) |
| @@ -26,9 +26,6 @@ Div_test_24,"[496, 128, 64], [496, 128, 64]","int32, int32","ND, ND","[-100, 100 | |||
| 26 | Div_test_25,"[1024, 128], [1024, 128]","int32, int32","ND, ND","[-10, 10], [1, 1]","[1024, 128]",fp32,ND,"[128, 512]","[64, 64]" | 26 | Div_test_25,"[1024, 128], [1024, 128]","int32, int32","ND, ND","[-10, 10], [1, 1]","[1024, 128]",fp32,ND,"[128, 512]","[64, 64]" |
| 27 | Div_test_26,"[1024, 128], [1024, 128]","int32, int32","ND, ND","[16777217, 2147483647], [2, 10]","[1024, 128]",fp32,ND,"[128, 512]","[64, 64]" | 27 | Div_test_26,"[1024, 128], [1024, 128]","int32, int32","ND, ND","[16777217, 2147483647], [2, 10]","[1024, 128]",fp32,ND,"[128, 512]","[64, 64]" |
| 28 | Div_test_27,"[1024, 128], [1024, 128]","int32, int32","ND, ND","[-2147483648, -2147483648], [2, 10]","[1024, 128]",fp32,ND,"[128, 512]","[64, 64]" | 28 | Div_test_27,"[1024, 128], [1024, 128]","int32, int32","ND, ND","[-2147483648, -2147483648], [2, 10]","[1024, 128]",fp32,ND,"[128, 512]","[64, 64]" |
| 29 | -Div_int64,"[32, 32], [32, 32]","int64, int64","ND, ND","[-100, 100], [1, 100]","[32, 32]",int64,ND,"[16, 16]","[16, 16]" | 29 | +Div_int64,"[32, 32], [32, 32]","int64, int64","ND, ND","[-100, 100], [1, 100]","[32, 32]",fp32,ND,"[16, 16]","[16, 16]" |
| 30 | -Div_uint64,"[32, 32], [32, 32]","uint64, uint64","ND, ND","[1, 100], [1, 100]","[32, 32]",uint64,ND,"[16, 16]","[16, 16]" | 30 | +Div_tail_int64,"[107, 145], [107, 145]","int64, int64","ND, ND","[-100, 100], [1, 100]","[107, 145]",fp32,ND,"[32, 32]","[16, 16]" |
| 31 | -Div_tail_int64,"[107, 145], [107, 145]","int64, int64","ND, ND","[-100, 100], [1, 100]","[107, 145]",int64,ND,"[32, 32]","[16, 16]" | 31 | +Div_3d_int64,"[2, 32, 32], [2, 32, 32]","int64, int64","ND, ND","[-100, 100], [1, 100]","[2, 32, 32]",fp32,ND,"[2, 16, 16]","[2, 8, 8]" |
| 32 | -Div_tail_uint64,"[107, 145], [107, 145]","uint64, uint64","ND, ND","[1, 100], [1, 100]","[107, 145]",uint64,ND,"[32, 32]","[16, 16]" | ||
| 33 | -Div_3d_int64,"[2, 32, 32], [2, 32, 32]","int64, int64","ND, ND","[-100, 100], [1, 100]","[2, 32, 32]",int64,ND,"[2, 16, 16]","[2, 8, 8]" | ||
| 34 | -Div_3d_uint64,"[2, 32, 32], [2, 32, 32]","uint64, uint64","ND, ND","[1, 100], [1, 100]","[2, 32, 32]",uint64,ND,"[2, 16, 16]","[2, 8, 8]" | ||
| @@ -8,13 +8,12 @@ Divs_test_6,"[64, 128]",int32,ND,"[-100, 100]","[64, 128]",fp32,ND,"[7, 43]","[1 | |||
| 8 | Divs_test_7,"[64, 128]",int32,ND,"[16777217, 2147483647]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",3,int32 | 8 | Divs_test_7,"[64, 128]",int32,ND,"[16777217, 2147483647]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",3,int32 |
| 9 | Divs_test_8,"[64, 128]",fp32,ND,"[-10, 10]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",3,int32 | 9 | Divs_test_8,"[64, 128]",fp32,ND,"[-10, 10]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",3,int32 |
| 10 | Divs_test_9,"[16, 128, 64]",fp16,ND,"[-10, 10]","[16, 128, 64]",fp16,ND,"[3, 4, 8]","[5, 142, 8]",-5,int16 | 10 | Divs_test_9,"[16, 128, 64]",fp16,ND,"[-10, 10]","[16, 128, 64]",fp16,ND,"[3, 4, 8]","[5, 142, 8]",-5,int16 |
| 11 | -Divs_test_10,"[64, 128]",fp16,ND,"[-10, 10]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",100,int32 | 11 | +Divs_test_10,"[64, 128]",fp16,ND,"[-10, 10]","[64, 128]",fp16,ND,"[7, 43]","[192, 120]",100,int32 |
| 12 | -Divs_test_11,"[64, 128]",fp16,ND,"[-10, 10]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",2147483647,int32 | 12 | +Divs_test_11,"[64, 128]",fp16,ND,"[-10, 10]","[64, 128]",fp16,ND,"[7, 43]","[192, 120]",2147483647,int32 |
| 13 | Divs_test_12,"[64, 128]",bf16,ND,"[-10, 10]","[64, 128]",bf16,ND,"[7, 43]","[192, 120]",-5,int16 | 13 | Divs_test_12,"[64, 128]",bf16,ND,"[-10, 10]","[64, 128]",bf16,ND,"[7, 43]","[192, 120]",-5,int16 |
| 14 | -Divs_test_13,"[64, 128]",bf16,ND,"[-10, 10]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",100,int32 | 14 | +Divs_test_13,"[64, 128]",bf16,ND,"[-10, 10]","[64, 128]",bf16,ND,"[7, 43]","[192, 120]",100,int32 |
| 15 | -Divs_test_14,"[64, 128]",bf16,ND,"[-10, 10]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",2147483647,int32 | 15 | +Divs_test_14,"[64, 128]",bf16,ND,"[-10, 10]","[64, 128]",bf16,ND,"[7, 43]","[192, 120]",2147483647,int32 |
| 16 | Divs_test_15,"[64, 128]",fp32,ND,"[-10, 10]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",-5,int16 | 16 | Divs_test_15,"[64, 128]",fp32,ND,"[-10, 10]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",-5,int16 |
| 17 | Divs_test_16,"[64, 128]",int16,ND,"[-100, 100]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",100,int32 | 17 | Divs_test_16,"[64, 128]",int16,ND,"[-100, 100]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",100,int32 |
| 18 | Divs_test_17,"[64, 128]",int16,ND,"[-100, 100]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",2147483647,int32 | 18 | Divs_test_17,"[64, 128]",int16,ND,"[-100, 100]","[64, 128]",fp32,ND,"[7, 43]","[192, 120]",2147483647,int32 |
| 19 | -Divs_int64,"[32, 32]",int64,ND,"[-100, 100]","[32, 32]",int64,ND,"[16, 16]","[16, 16]",3,int64 | 19 | +Divs_int64,"[32, 32]",int64,ND,"[-100, 100]","[32, 32]",fp32,ND,"[16, 16]","[16, 16]",3,int64 |
| 20 | -Divs_uint64,"[32, 32]",uint64,ND,"[1, 100]","[32, 32]",uint64,ND,"[16, 16]","[16, 16]",3,uint64 | ||