19#include "kernels/Utils.h"
32inline void CalcSign(
const T *input_data,
const size_t num_elements, T *output_data)
37 if constexpr (std::is_floating_point_v<T>)
63 switch (
input()->element_type())
68 case DataType::FLOAT32:
71 case DataType::FLOAT64:
75 throw std::runtime_error(
"luci-intp Sign Unsupported type.");
79template <
typename T>
void Sign::eval()
const
void resize(const Shape &new_shape)
DataType element_type() const
void execute() const override
void configure() override
const Tensor * input() const
Sign(const Tensor *input, Tensor *output)
#define LUCI_INTERPRETER_CHECK(cond)
tflite::RuntimeShape getTensorShape(const Tensor *tensor)
T must_cast(loco::Node *node)
uint32_t num_elements(const Shape &shape)
The number of elements of a feature map of a given shape.