diff options
author | 2018-06-26 21:58:04 -0700 | |
---|---|---|
committer | 2018-06-26 22:00:50 -0700 | |
commit | f45803feaf132d5bc92d1b598e9c83a24f18a47c (patch) | |
tree | 73441e30dab3bfe570b8dda8e4e3ec393efe5501 /tensorflow/contrib/lite/model.cc | |
parent | 66c844cb865064b49729a31058bba80d6cbc08e6 (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.cc | 2 |
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; |