-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[onnxruntime] source patch for DISABLE_ABSEIL
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ grpc[codegen] | |
flatbuffers | ||
abseil | ||
liblzma | ||
onnxruntime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/onnxruntime/core/framework/kernel_type_str_resolver.cc b/onnxruntime/core/framework/kernel_type_str_resolver.cc | ||
index d05e02e..6f8a47c 100644 | ||
--- a/onnxruntime/core/framework/kernel_type_str_resolver.cc | ||
+++ b/onnxruntime/core/framework/kernel_type_str_resolver.cc | ||
@@ -50,7 +50,7 @@ Status KernelTypeStrResolver::ResolveKernelTypeStr(const Node& node, std::string | ||
// TODO(edgchen1) maybe we can use transparent hash/eq to enable lookup with string_view | ||
const auto type_str_it = type_str_map.find(std::string(kernel_type_str)); | ||
#else | ||
- const auto type_str_it = type_str_map.find(kernel_type_str); | ||
+ const auto type_str_it = type_str_map.find(std::string(kernel_type_str)); // abseil::raw_hash_set fails deduction ... | ||
#endif | ||
|
||
ORT_RETURN_IF(type_str_it == type_str_map.end(), | ||
diff --git a/onnxruntime/core/framework/ort_value_name_idx_map.h b/onnxruntime/core/framework/ort_value_name_idx_map.h | ||
index 1b5f6bc..b721205 100644 | ||
--- a/onnxruntime/core/framework/ort_value_name_idx_map.h | ||
+++ b/onnxruntime/core/framework/ort_value_name_idx_map.h | ||
@@ -36,7 +36,7 @@ class OrtValueNameIdxMap { | ||
#ifdef DISABLE_ABSEIL | ||
auto it = map_.find(std::string(name)); | ||
#else | ||
- auto it = map_.find(name); | ||
+ auto it = map_.find(std::string(name)); // abseil::raw_hash_set fails deduction ... | ||
#endif | ||
if (it == map_.end()) { | ||
return ORT_MAKE_STATUS(ONNXRUNTIME, FAIL, "Could not find OrtValue with name '", name, "'"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters