Skip to content
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

[Fix](mlu-ops):fix polynms doc's descriptor. #855

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bangc-ops/kernels/poly_nms/poly_nms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ mluOpPolyNms(mluOpHandle_t handle, const mluOpTensorDescriptor_t boxes_desc,
auto mask_col_num = getMaskColNum(box_num);
if ((10 * box_num + mask_col_num * 2) > (MAX_NRAM_SIZE / sizeof(float))) {
LOG(ERROR) << API << " Too many input boxes, kernel cannot work."
<< " The number of input boxes on mlu270, mlu290 and mlu370 "
"shoule be less than 9770,"
<< " The number of input boxes shoule be less than 9770,"
<< " current input box num is " << box_num << ".";
return MLUOP_STATUS_NOT_SUPPORTED;
}
Expand Down
3 changes: 1 addition & 2 deletions bangc-ops/mlu_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -4176,8 +4176,7 @@ mluOpGetPolyNmsWorkspaceSize(mluOpHandle_t handle, const mluOpTensorDescriptor_t
* calculation result of the competitor operation.
* - If there are cases with the same score in the input boxes, the output
* results may be inconsistent with the results of competing products.
* - The number of input boxes on MLU270, MLU290, and MLU370 does not exceed
* 9770.
* - The number of input boxes should be less than 9770.
*
* @par Example
* - None.
Expand Down