chromium/third_party/tflite/src/tensorflow/lite/kernels/comparisons.cc

/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include "tensorflow/lite/kernels/internal/reference/comparisons.h"

#include <stdint.h>

#include "tensorflow/lite/core/c/common.h"
#include "tensorflow/lite/kernels/internal/compatibility.h"
#include "tensorflow/lite/kernels/internal/quantization_util.h"
#include "tensorflow/lite/kernels/internal/reference/reference_ops.h"
#include "tensorflow/lite/kernels/internal/tensor.h"
#include "tensorflow/lite/kernels/internal/tensor_ctypes.h"
#include "tensorflow/lite/kernels/internal/types.h"
#include "tensorflow/lite/kernels/kernel_util.h"
#include "tensorflow/lite/string_util.h"

namespace tflite {
namespace ops {
namespace builtin {
namespace comparisons {
namespace {

constexpr int kInputTensor1 =;
constexpr int kInputTensor2 =;
constexpr int kOutputTensor =;

TfLiteStatus ComparisonPrepareCommon(TfLiteContext* context, TfLiteNode* node,
                                     bool is_string_allowed) {}

TfLiteStatus ComparisonPrepare(TfLiteContext* context, TfLiteNode* node) {}

TfLiteStatus ComparisonPrepareStringAllowed(TfLiteContext* context,
                                            TfLiteNode* node) {}

void QuantizeMultiplier(double double_multiplier, int32_t* quantized_multiplier,
                        int* left_shift) {}

template <typename input_dtype, reference_ops::ComparisonFn<int32> opname>
void ComparisonQuantized(const TfLiteTensor* input1, const TfLiteTensor* input2,
                         TfLiteTensor* output, bool requires_broadcast) {}

template <typename T, reference_ops::ComparisonFn<T> opname>
void Comparison(const TfLiteTensor* input1, const TfLiteTensor* input2,
                TfLiteTensor* output, bool requires_broadcast) {}

void ComparisonString(bool (*opname)(const StringRef&, const StringRef&),
                      const TfLiteTensor* input1, const TfLiteTensor* input2,
                      TfLiteTensor* output, bool requires_broadcast) {}

TfLiteStatus EqualEval(TfLiteContext* context, TfLiteNode* node) {}

TfLiteStatus NotEqualEval(TfLiteContext* context, TfLiteNode* node) {}

TfLiteStatus GreaterEval(TfLiteContext* context, TfLiteNode* node) {}

TfLiteStatus GreaterEqualEval(TfLiteContext* context, TfLiteNode* node) {}

TfLiteStatus LessEval(TfLiteContext* context, TfLiteNode* node) {}

TfLiteStatus LessEqualEval(TfLiteContext* context, TfLiteNode* node) {}

}  // namespace
}  // namespace comparisons

TfLiteRegistration* Register_EQUAL() {}

TfLiteRegistration* Register_NOT_EQUAL() {}

TfLiteRegistration* Register_GREATER() {}

TfLiteRegistration* Register_GREATER_EQUAL() {}

TfLiteRegistration* Register_LESS() {}

TfLiteRegistration* Register_LESS_EQUAL() {}

}  // namespace builtin
}  // namespace ops
}  // namespace tflite