mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-19 21:32:23 +00:00
parent
cc94ba7740
commit
f59a44e24f
1 changed files with 4 additions and 0 deletions
|
|
@ -33,7 +33,11 @@ class OrtValueNameIdxMap {
|
|||
common::Status GetIdx(std::string_view name, int& idx) const {
|
||||
idx = -1;
|
||||
|
||||
#ifdef DISABLE_ABSEIL
|
||||
auto it = map_.find(std::string(name));
|
||||
#else
|
||||
auto it = map_.find(name);
|
||||
#endif
|
||||
if (it == map_.end()) {
|
||||
return ORT_MAKE_STATUS(ONNXRUNTIME, FAIL, "Could not find OrtValue with name '", name, "'");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue