20#include "kernels/Utils.h"
22#include "kernels/BinaryOpCommon.h"
43 switch (
input1()->element_type())
45 case DataType::FLOAT32:
49 evalMaximum<uint8_t>();
52 throw std::runtime_error(
"luci-intp Maximum Unsupported type.");
56template <
typename T>
inline void Maximum::evalMaximum()
const
61 [](T x, T y) {
return std::max(x, y); });
void resize(const Shape &new_shape)
void configure() override
const Tensor * input2() const
void execute() const override
const Tensor * input1() const
Maximum(const Tensor *input1, const Tensor *input2, Tensor *output)
#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)