20#include "kernels/Utils.h"
42 for (int32_t dim = 0; dim <
num_dim; ++dim)
51 switch (
output()->element_type())
53 case DataType::FLOAT32:
57 throw std::runtime_error(
"luci-intp Tile Unsupported type.");
64template <
typename T,
typename M>
67 for (
M i = 0;
i < multiplier; ++
i)
76template <
typename T,
typename M>
78 const M *multiples, T *
out_data,
int dimension)
84 return std::make_pair(0, 0);
115void Tile::evalFloat()
const
void resize(const Shape &new_shape)
const Shape & shape() const
const Tensor * multiples() const
const Tensor * input() const
Tile(const Tensor *input, const Tensor *multiplies, Tensor *output)
void execute() const override
void configure() override
#define LUCI_INTERPRETER_CHECK(cond)
const luci_interpreter::RuntimeShape output_shape
tflite::RuntimeShape getTensorShape(const Tensor *tensor)
T must_cast(loco::Node *node)
void CopyMultipleTimes(const T *in_data, int32_t in_size, M multiplier, T *out_data)
std::pair< int, int > TileOneDimension(const Shape &in_dimensions, const T *in_data, const M *multipliers, T *out_data, int dimension)