20#include "kernels/Utils.h"
22#include "kernels/BinaryOpCommon.h"
43 switch (
input1()->element_type())
45 case DataType::FLOAT32:
49 evalMinimum<uint8_t>();
52 throw std::runtime_error(
"luci-intp Minimum Unsupported type.");
56template <
typename T>
inline void Minimum::evalMinimum()
const
61 [](T x, T y) {
return std::min(x, y); });
void resize(const Shape &new_shape)
Minimum(const Tensor *input1, const Tensor *input2, Tensor *output)
const Tensor * input1() const
void configure() override
void execute() const override
const Tensor * input2() const
#define LUCI_INTERPRETER_CHECK(cond)
Shape calculateShapeForBroadcast(const Shape &input1_shape, const Shape &input2_shape)
tflite::RuntimeShape getTensorShape(const Tensor *tensor)
void BinaryOpBroadcastSlow(const tflite::RuntimeShape &unextended_input1_shape, const T *input1_data, const tflite::RuntimeShape &unextended_input2_shape, const T *input2_data, const tflite::RuntimeShape &unextended_output_shape, T *output_data, Op op)