From 01042658f562530f5d32eb16f908b9d178e9311a Mon Sep 17 00:00:00 2001 From: ANSHUMAN TRIPATHY Date: Thu, 4 Apr 2019 16:53:36 +0530 Subject: [PATCH] Lite: Compare Op bug fix --- tensorflow/lite/kernels/comparisons.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tensorflow/lite/kernels/comparisons.cc b/tensorflow/lite/kernels/comparisons.cc index e49348a5462..15a4a983c1e 100644 --- a/tensorflow/lite/kernels/comparisons.cc +++ b/tensorflow/lite/kernels/comparisons.cc @@ -37,9 +37,8 @@ TfLiteStatus ComparisonPrepare(TfLiteContext* context, TfLiteNode* node) { const TfLiteTensor* input2 = GetInput(context, node, kInputTensor2); TfLiteTensor* output = GetOutput(context, node, kOutputTensor); - // Don't support string and bool. - TF_LITE_ENSURE(context, - input1->type != kTfLiteString || input1->type != kTfLiteBool); + // Don't support string. + TF_LITE_ENSURE(context, input1->type != kTfLiteString); // Currently only support tensors have the same type. TF_LITE_ENSURE_TYPES_EQ(context, input1->type, input2->type); output->type = kTfLiteBool;