mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-26 19:52:38 +00:00
Fix builds that use gcc 5 (#7765)
This commit is contained in:
parent
f6eb0f76ae
commit
6c252a0bea
1 changed files with 2 additions and 2 deletions
|
|
@ -31,12 +31,12 @@ AllocatorPtr PrepackedWeightsContainer::GetOrCreateAllocator(const std::string&
|
|||
}
|
||||
|
||||
const PrePackedWeights& PrepackedWeightsContainer::GetWeight(const std::string& key) const {
|
||||
// .at() will throw if th key doesn't exist
|
||||
// .at() will throw if the key doesn't exist
|
||||
return prepacked_weights_map_.at(key);
|
||||
}
|
||||
|
||||
bool PrepackedWeightsContainer::WriteWeight(const std::string& key, PrePackedWeights&& packed_weight) {
|
||||
auto ret = prepacked_weights_map_.insert({key, std::move(packed_weight)});
|
||||
auto ret = prepacked_weights_map_.insert(std::make_pair(key, std::move(packed_weight)));
|
||||
return ret.second;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue