aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/model.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-06-26 21:58:04 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-06-26 22:00:50 -0700
commitf45803feaf132d5bc92d1b598e9c83a24f18a47c (patch)
tree73441e30dab3bfe570b8dda8e4e3ec393efe5501 /tensorflow/contrib/lite/model.cc
parent66c844cb865064b49729a31058bba80d6cbc08e6 (diff)
Remove an unnecessary op->opcode_index() operation.
PiperOrigin-RevId: 202251080
Diffstat (limited to 'tensorflow/contrib/lite/model.cc')
-rw-r--r--tensorflow/contrib/lite/model.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/lite/model.cc b/tensorflow/contrib/lite/model.cc
index 82f143b54d..04327a44db 100644
--- a/tensorflow/contrib/lite/model.cc
+++ b/tensorflow/contrib/lite/model.cc
@@ -757,7 +757,7 @@ TfLiteStatus InterpreterBuilder::ParseNodes(
}
const TfLiteRegistration* registration =
- flatbuffer_op_index_to_registration_[op->opcode_index()];
+ flatbuffer_op_index_to_registration_[index];
if (registration == nullptr) {
error_reporter_->Report("Skipping op for opcode_index %d\n", index);
status = kTfLiteError;