We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed9c4de commit 2002dfeCopy full SHA for 2002dfe
runtime/executor/tensor_parser_exec_aten.cpp
@@ -194,6 +194,11 @@ ET_NODISCARD Result<void*> getTensorDataPtr(
194
} else {
195
// Mutable value.
196
// Look up tensor in named data map.
197
+ ET_CHECK_OR_RETURN_ERROR(
198
+ named_data_map != nullptr,
199
+ InvalidExternalData,
200
+ "No named data map provided. Cannot retrieve external tensor with fqn %s", fqn
201
+ );
202
Result<const TensorLayout> tensor_layout_res =
203
named_data_map->get_tensor_layout(fqn);
204
if (!tensor_layout_res.ok()) {
0 commit comments