20#include "kernels/Utils.h"
33inline void CalcCos(
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 Cos Unsupported type.");
64void Cos::evalFloat()
const
67 CalcCos(getTensorData<float>(
input()),
size, getTensorData<float>(
output()));
void resize(const Shape &new_shape)
void execute() const override
Cos(const Tensor *input, Tensor *output)
void configure() override
const Tensor * input() const
#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.