Skip to content

Commit 0b51b9d

Browse files
ethansfnglucylq
authored andcommitted
Replace HintBasedSymShapeEvalPass with ConstraintBasedSymShapeEvalPass
Differential Revision: D84643270 Pull Request resolved: #15127
1 parent db18577 commit 0b51b9d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

extension/named_data_map/merged_data_map.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,10 @@ namespace ET_MERGED_DATA_MAP_NAMESPACE {
5959
ET_NODISCARD Result<const TensorLayout> MergedDataMap::get_tensor_layout(
6060
string_view key) const {
6161
const auto it = key_to_map_index_.find(key.data());
62-
ET_CHECK_OR_RETURN_ERROR(
63-
it != key_to_map_index_.end(),
64-
NotFound,
65-
"Key %s not found in named data maps",
66-
key.data());
67-
62+
if (it == key_to_map_index_.end()) {
63+
ET_LOG(Debug, "Key %s not found in named data maps.", key.data());
64+
return Error::NotFound;
65+
}
6866
return named_data_maps_.at(it->second)->get_tensor_layout(key);
6967
}
7068

0 commit comments

Comments
 (0)