Skip to content

Commit

Permalink
prefast C26451 (microsoft#14933)
Browse files Browse the repository at this point in the history
  • Loading branch information
wejoncy authored Mar 7, 2023
1 parent 3e08a67 commit be1416d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onnxruntime/contrib_ops/cpu/quantization/qlinear_softmax.cc
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ common::Status QlinearSoftmaxCPU<uint8_t>(size_t N,
ThreadPool::TryParallelFor(
thread_pool, N,
// Read 3*N (max,sum,div) write N (div), computation=Read
TensorOpCost{static_cast<double>(D * 3),
TensorOpCost{static_cast<double>(D) * 3.0,
static_cast<double>(D),
static_cast<double>(D * 3)},
static_cast<double>(D) * 3.0},
[x_data, y_data, D, y_scale, yzp, &lookup_table](std::ptrdiff_t first, std::ptrdiff_t last) {
const auto c_y_scale = y_scale;
const auto c_y_zp = yzp;
Expand Down

0 comments on commit be1416d

Please sign in to comment.