19#include "kernels/Utils.h"
45 switch (
input()->element_type())
47 case DataType::FLOAT32:
51 throw std::runtime_error(
"luci-intp Gelu Unsupported type.");
55void Gelu::evalFloat()
const
59 getTensorData<float>(
output()));
const GeluParams & params() const
void resize(const Shape &new_shape)
void configure() override
Gelu(const Tensor *input, Tensor *output, const GeluParams ¶ms)
void execute() const override
const Tensor * input() const
#define LUCI_INTERPRETER_CHECK(cond)
tflite::RuntimeShape getTensorShape(const Tensor *tensor)