22#include "PALComparisons.h"
45 const circle::Tensor *input1 =
nullptr;
46 const circle::Tensor *input2 =
nullptr;
47 const circle::Tensor *
output =
nullptr;
50 runtime_kernel.
readKernel(op_index, runtime_context);
52 status = runtime_kernel.
getDataFromStorage(op_index, runtime_storage, runtime_context);
60 assert(input1 !=
nullptr);
61 assert(input2 !=
nullptr);
62 assert(output !=
nullptr);
64 switch (input1->type())
66 case circle::TensorType_INT64:
67 onert_micro::execute::evalComparisonGeneric<int64_t>(&runtime_kernel,
70 case circle::TensorType_INT32:
71 onert_micro::execute::evalComparisonGeneric<int32_t>(&runtime_kernel,
76 case circle::TensorType_FLOAT32:
77 onert_micro::execute::evalComparisonGeneric<float>(&runtime_kernel,
82 assert(
false &&
"Unsupported type.");
OMStatus getDataFromStorage(uint16_t op_index, core::OMRuntimeStorage &storage, core::OMRuntimeContext &context)
OMStatus readKernel(uint16_t op_index, core::OMRuntimeContext &runtime_context)
const circle::Tensor * outputs[maxOutputSize]
const circle::Tensor * inputs[maxInputSize]
constexpr uint32_t input1TensorIdx
constexpr uint32_t outputTensorIdx
constexpr uint32_t input2TensorIdx
bool LessEqualFn(T lhs, T rhs)
core::OMRuntimeContext & runtime_context
core::OMRuntimeStorage & runtime_storage