mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-08 00:23:03 +00:00
fix valgrind warnings:Conditional jump or move depends on uninitialis… (#11822)
* fix valgrind warnings:Conditional jump or move depends on uninitialised value(s)
This commit is contained in:
parent
52f6db19da
commit
607afbe1c0
2 changed files with 2 additions and 1 deletions
|
|
@ -644,6 +644,7 @@ Status QLinearConv<ActType>::Compute(OpKernelContext* context) const {
|
|||
group_col_buffer_size += MLAS_SYMM_QGEMM_BUF_OVERRUN;
|
||||
auto* col_data = alloc->Alloc(SafeInt<size_t>(sizeof(ActType)) * group_col_buffer_size);
|
||||
col_buffer = BufferUniquePtr(col_data, BufferDeleter(alloc));
|
||||
memset(col_data, 0, SafeInt<size_t>(sizeof(ActType)) * group_col_buffer_size);
|
||||
}
|
||||
}
|
||||
if (use_indirection_buffer) {
|
||||
|
|
|
|||
|
|
@ -713,7 +713,7 @@ class InferenceSession {
|
|||
DataTransferManager data_transfer_mgr_;
|
||||
|
||||
// Number of concurrently running executors
|
||||
std::atomic<int> current_num_runs_;
|
||||
std::atomic<int> current_num_runs_ = 0;
|
||||
|
||||
mutable onnxruntime::OrtMutex session_mutex_; // to ensure only one thread can invoke Load/Initialize
|
||||
bool is_model_loaded_ = false; // GUARDED_BY(session_mutex_)
|
||||
|
|
|
|||
Loading…
Reference in a new issue