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 dd43946 commit 87dba50Copy full SHA for 87dba50
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
+ "Cannot retrieve external tensor with fqn: %s. The named_data_map is null; most likely no external .ptd file was provided.",
201
+ fqn);
202
Result<const TensorLayout> tensor_layout_res =
203
named_data_map->get_tensor_layout(fqn);
204
if (!tensor_layout_res.ok()) {
0 commit comments