diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-04-16 15:46:42 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-04-16 15:49:28 -0700 |
commit | a4570ad1cf8dab5a77b0c460fba2da30fd0c8bb6 (patch) | |
tree | 5240b1850936e3816e29a55e1111649cc2f3313b /tensorflow/contrib/lite/interpreter.cc | |
parent | 90ee831014a6380f1ca0c14304979b26a62ea7d8 (diff) |
Internal change.
PiperOrigin-RevId: 193112205
Diffstat (limited to 'tensorflow/contrib/lite/interpreter.cc')
-rw-r--r-- | tensorflow/contrib/lite/interpreter.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tensorflow/contrib/lite/interpreter.cc b/tensorflow/contrib/lite/interpreter.cc index 31b874a6a6..ff8524f12e 100644 --- a/tensorflow/contrib/lite/interpreter.cc +++ b/tensorflow/contrib/lite/interpreter.cc @@ -245,11 +245,8 @@ TfLiteStatus Interpreter::ReplaceSubgraphsWithDelegateKernels( // Initialize the output tensors's delegate-related fields. for (int tensor_index : subgraph.output_tensors) { TfLiteTensor* tensor = &tensors_[tensor_index]; - TF_LITE_ENSURE_EQ(&context_, tensor->delegate, nullptr); - TF_LITE_ENSURE_EQ(&context_, tensor->buffer_handle, - kTfLiteNullBufferHandle); - // buffer_handle will be filled in delegate's `Prepare` - // function. + TF_LITE_ENSURE(&context_, tensor->delegate == nullptr || + tensor->delegate == delegate); tensor->delegate = delegate; } |