[Fix](bangc-ops): add large tensor num check for psamask. #818
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for your contribution and we appreciate it a lot.
1. Motivation
add large tensor num check for psamask.
2. Modification
modified: bangc-ops/kernels/psamask/psamask.cpp
3. Test Report
3.1.4 Parameter Check
the test points are given and the test results are stated.
inputs : "shape":[1,1,2,2147483640]
[2023-8-23 15:5:6] [MLUOP] [Error]:"MLUOP_STATUS_BAD_PARAM in mluOpPsamaskForward(handle_, psa_type, input_desc, input, h_mask, w_mask, output_desc, output)"
3.4 Summary Analysis
Test passed