Skip to content

Fix random failure in test_trt_convert_strided_slice #69573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

anderson101866
Copy link
Contributor

@anderson101866 anderson101866 commented Nov 21, 2024

PR Category

Inference

PR Types

Bug fixes

Description

The test will produce several error log like:
API Usage Error (Tensor slice_output_data_subgraph_4 has axis 3 with inherently negative length. Proven upper bound is -111894960. Network must have an instance where axis has non-negative length.)

, which is uninitialized memory issue due to TRT10 alias Dims to Dims64,
but TRT8 alias Dims to Dims32.

Reproduce

Run unittest test_trt_convert_strided_slice with TRT 10. It'll fail with high probability


這個commit 專注C++ TRT converter的改動,也就是現況正在應用的版本。
過去舊有的代碼,以int32_t寫死初始化的memset大小。造成TRT10介面更動時代碼無法自動適應。會因uninitialized memory造成random issue。

In short,此commit修正兩個潛在的TRT10問題

The test will produce several error log like:
API Usage Error (Tensor slice_output_data_subgraph_4 has axis 3 with inherently negative length. Proven upper bound is -111894960. Network must have an instance where axis has non-negative length.)

, which is uninitialized memory issue due to TRT10 alias Dims to Dims64,
 but TRT8 alias Dims to Dims32.
Copy link

paddle-bot bot commented Nov 21, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Nov 21, 2024
@AdamzNV AdamzNV added the NVIDIA label Nov 21, 2024
@Wangzheee Wangzheee merged commit ebce58b into PaddlePaddle:develop Nov 21, 2024
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers NVIDIA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants