19#include "kernels/Utils.h"
21#include <tensorflow/lite/kernels/internal/reference/reference_ops.h>
36 _has_low_rank_input_condition =
false;
59 switch (
t()->element_type())
61 case DataType::FLOAT32:
65 throw std::runtime_error(
"luci-intp Select unsupported type.");
69void Select::evalFloat()
const
80 if (_has_low_rank_input_condition)
void resize(const Shape &new_shape)
const Shape & shape() const
void configure() override
Select(const Tensor *cond, const Tensor *t, const Tensor *e, Tensor *output)
void execute() const override
const Tensor * condition() const
#define LUCI_INTERPRETER_CHECK(cond)
const luci_interpreter::RuntimeShape output_shape
Shape calculateShapeForBroadcast(const Shape &input1_shape, const Shape &input2_shape)
tflite::RuntimeShape getTensorShape(const Tensor *tensor)
T must_cast(loco::Node *node)