Skip to content

Relax ocr_det_mv3_db TRT FP32 delta for adaptive_avg_pool precision alignment#3228

Open
zrr1999 wants to merge 1 commit intoPaddlePaddle:developfrom
zrr1999:PAA/fix-ocr-mv3-trt-fp32-delta
Open

Relax ocr_det_mv3_db TRT FP32 delta for adaptive_avg_pool precision alignment#3228
zrr1999 wants to merge 1 commit intoPaddlePaddle:developfrom
zrr1999:PAA/fix-ocr-mv3-trt-fp32-delta

Conversation

@zrr1999
Copy link
Copy Markdown
Member

@zrr1999 zrr1999 commented Mar 24, 2026

Summary

  • Relax delta tolerance from 2e-5 to 3e-5 in test_ocr_det_mv3_db_trt_fp32.py (3 test functions)
  • Required due to adaptive_avg_pool precision alignment changes in Paddle PR [PAA] Fix adaptive_avg_pool precision alignment with PyTorch Paddle#78101
  • The MobileNetV3-DB OCR model uses adaptive_avg_pool2d; kernel numerical changes cause a max diff of 2.11e-05 (previously within 2e-05 tolerance, now exceeds by 1.1e-06)

Test plan

  • Verify test_trt_fp32_bz1_dynamic_multi_thread passes with new delta
  • Verify test_trtfp32_more_bz_dynamic_bz passes with new delta
  • Verify test_jetson_trtfp32_more_bz_dynamic_bz passes with new delta

🤖 Generated with Claude Code

The adaptive_avg_pool precision alignment in Paddle PR #78101 causes
a minor numerical shift (max diff 2.11e-05 vs old delta 2e-05) in the
MobileNetV3-DB OCR model output. Relax delta to 3e-5 to accommodate
this expected precision change.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant