Skip to content

Commit 1a7aa92

Browse files
committed
Update base for Update on "Pass one NDM to backend init"
Take external NDM if it exists, otherwise internal. Note: by default, xnnpack uses the named_data_map. Constants are not stored with the delegated blob anymore. Differential Revision: [D73679710](https://our.internmc.facebook.com/intern/diff/D73679710/) [ghstack-poisoned]
1 parent 2444ee0 commit 1a7aa92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extension/flat_tensor/flat_tensor_data_map.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ ET_NODISCARD Result<const char*> FlatTensorDataMap::get_key(
253253
index,
254254
num_keys);
255255

256-
if (flat_tensor_->named_data() != nullptr && index < flat_tensor_->named_data()->size()) {
256+
if (flat_tensor_->named_data() != nullptr &&
257+
index < flat_tensor_->named_data()->size()) {
257258
return flat_tensor_->named_data()->Get(index)->key()->c_str();
258259
} else {
259260
if (flat_tensor_->named_data() != nullptr) {

0 commit comments

Comments
 (0)