mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-26 22:35:43 +00:00
prefast C26451 (#14933)
Fixed [AB#13290](https://aiinfra.visualstudio.com/6a833879-cd9b-44a4-a9de-adc2d818f13c/_workitems/edit/13290)
This commit is contained in:
parent
3e08a67dd6
commit
be1416d032
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue