18#include "kernels/Utils.h"
30 Tensor::element_type(kernel.
output()));
33 Tensor::num_elements(kernel.
output()));
40 const auto input = kernel.
input();
41 const auto output = kernel.
output();
50 output_data =
const_cast<uint8_t *
>(input_data);
53 assert(input_data !=
nullptr);
54 assert(output_data !=
nullptr);
58 switch (Tensor::element_type(input))
61 case DataType::FLOAT32:
63 kernels::getTensorData<float>(output_data));
67 assert(
false &&
"Unsupported type.");
void makeInplaceOperation(const circle::Tensor *src_tensor, const circle::Tensor *dst_tensor)
bool is_inplace_op(const circle::Operator *op)
uint8_t * getDataByTensor(const circle::Tensor *raw_tensor)
const circle::Tensor * output() const
const circle::Tensor * input() const
#define LUCI_INTERPRETER_CHECK(cond)
luci_interpreter::RuntimeShape getTensorRuntimeShape(const circle::Tensor *circle_tensor, BaseRuntimeGraph *runtime_graph)
void Abs(const int flat_size, const float *input_data, float *output_data)
void execute_kernel_CircleAbs(const circle::Operator *cur_op, BaseRuntimeGraph *runtime_graph)
void configure_kernel_CircleAbs(const circle::Operator *cur_op, BaseRuntimeGraph *runtime_graph)