19#include "kernels/Utils.h"
21#include <tensorflow/lite/kernels/internal/reference/reference_ops.h>
56 case DataType::FLOAT32:
66 throw std::runtime_error(
"luci-intp SelectV2 unsupported type.");
70template <
typename T>
void SelectV2::evaluate()
const
81 tflite::reference_ops::BroadcastSelect5DSlow<bool, T>(
void resize(const Shape &new_shape)
const Shape & shape() const
DataType element_type() const
const Tensor * condition() const
SelectV2(const Tensor *cond, const Tensor *t, const Tensor *e, Tensor *output)
void execute() const override
void configure() override
#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)