19#include "kernels/Utils.h"
21#include "kernels/BinaryOpCommon.h"
38 switch (
input()->element_type())
44 throw std::runtime_error(
"luci-intp LogicalNot Unsupported type.");
48inline void LogicalNot::evalLogicalNot()
const
51 bool *output_data = getTensorData<bool>(
output());
52 const bool *input_data = getTensorData<bool>(
input());
53 for (
int i = 0; i <
size; ++i)
55 output_data[i] = !input_data[i];
void resize(const Shape &new_shape)
void execute() const override
void configure() override
LogicalNot(const Tensor *input, Tensor *output)
const Tensor * input() const
#define LUCI_INTERPRETER_CHECK(cond)
tflite::RuntimeShape getTensorShape(const Tensor *tensor)