#include "tensorflow/core/framework/types.h"
#include "tensorflow/core/graph/algorithm.h"
#include "tensorflow/core/graph/control_flow.h"
+#include "tensorflow/core/kernels/bounds_check.h"
#include "tensorflow/core/lib/strings/strcat.h"
#include "tensorflow/core/public/version.h"
}
auto node_name = [&cycles, &graph](int node_id) {
+ if (!FastBoundsCheck(node_id, graph.num_node_ids())) {
+ return string("(null)");
+ }
auto* node = graph.FindNodeId(node_id);
if (node == nullptr) {
return string("(null)");