#include <stddef.h>
#include "tensorflow/lite/core/c/common.h"
#include "tensorflow/lite/kernels/internal/reference/binary_function.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/kernel_util.h"
namespace tflite {
namespace ops {
namespace builtin {
namespace logical {
namespace {
constexpr int kInputTensor1 = …;
constexpr int kInputTensor2 = …;
constexpr int kOutputTensor = …;
struct OpData { … };
void* Init(TfLiteContext* context, const char* buffer, size_t length) { … }
void Free(TfLiteContext* context, void* buffer) { … }
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { … }
TfLiteStatus LogicalImpl(TfLiteContext* context, TfLiteNode* node,
bool (*func)(bool, bool)) { … }
bool LogicalOr(bool x, bool y) { … }
TfLiteStatus LogicalOrEval(TfLiteContext* context, TfLiteNode* node) { … }
bool LogicalAnd(bool x, bool y) { … }
TfLiteStatus LogicalAndEval(TfLiteContext* context, TfLiteNode* node) { … }
}
}
TfLiteRegistration* Register_LOGICAL_OR() { … }
TfLiteRegistration* Register_LOGICAL_AND() { … }
}
}
}