mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-27 20:02:15 +00:00
fix prefast:Warning C26814 in non_max_suppression.cc (#12934)
This commit is contained in:
parent
bb98922cc8
commit
78bc53f91d
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ Status NonMaxSuppression::ComputeInternal(OpKernelContext* ctx) const {
|
|||
ctx->Output(0, {0, 3});
|
||||
} else {
|
||||
// concatenate outputs
|
||||
const int last_dim = 3;
|
||||
constexpr int last_dim = 3;
|
||||
const int num_elements = last_dim * total_num_saved_outputs;
|
||||
Tensor* output = ctx->Output(0, {static_cast<int64_t>(total_num_saved_outputs), last_dim});
|
||||
ORT_ENFORCE(output != nullptr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue