Update tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
Co-authored-by: Mihai Maruseac <mihai.maruseac@gmail.com>
This commit is contained in:
parent
6142a27972
commit
20eeb11ee0
@ -2387,8 +2387,8 @@ GraphDefImporter::GetArgsRetsAndTypesFromFunctionGraph(
|
||||
"' is missing attribute 'index'");
|
||||
|
||||
auto index = attr->i();
|
||||
const int nodes_size = nodes->size();
|
||||
if (nodes_size < index + 1) nodes->resize(index + 1);
|
||||
const int num_nodes = nodes->size();
|
||||
if (num_nodes < index + 1) nodes->resize(index + 1);
|
||||
|
||||
if ((*nodes)[index].node != nullptr)
|
||||
return errors::InvalidArgument(node->type_string(), " node '",
|
||||
|
Loading…
x
Reference in New Issue
Block a user