Merged
fix(pooling): 修复MaxPoolGradWithArgmax NHWC小C场景部分用例精度fail的问题 #13770
小王!Add on 16 days ago
fix(pooling): 修复MaxPoolGradWithArgmax NHWC小C场景部分用例精度fail的问题 #13770
Merged
Total: 1 files changed+4-1
| @@ -167,7 +167,10 @@ void MaxPoolGradWithArgmaxNHWCTilingCommon::AdjustInnerSplitForMultiCore() | |||
| 167 | return; | 167 | return; |
| 168 | } | 168 | } |
| 169 | 169 | ||
| 170 | - SearchOuterSingle(splitData.cOutputInner, 1); | 170 | + const int64_t bigCDomainThreshold = baseData.vRegSize / (2 * baseData.indexBytes); |
| 171 | + if (inputData->cX > bigCDomainThreshold) { | ||
| 172 | + SearchOuterSingle(splitData.cOutputInner, 1); | ||
| 173 | + } | ||
| 171 | DoBufferCalculate(); | 174 | DoBufferCalculate(); |
| 172 | } | 175 | } |
| 173 | 176 | ||