20#include "kernels/Utils.h"
33inline void CalcSin(
const T *input_data,
const size_t num_elements, T *output_data)
54 switch (
input()->element_type())
56 case DataType::FLOAT32:
60 throw std::runtime_error(
"luci-intp Sin Unsupported type.");
64void Sin::evalFloat()
const
67 CalcSin(getTensorData<float>(
input()),
size, getTensorData<float>(
output()));
void resize(const Shape &new_shape)
void configure() override
void execute() const override
const Tensor * input() const
Sin(const Tensor *input, Tensor *output)
#define LUCI_INTERPRETER_CHECK(cond)
tflite::RuntimeShape getTensorShape(const Tensor *tensor)
uint32_t num_elements(const Shape &shape)
The number of elements of a feature map of a given shape.