/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd. All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include "Builders.h"
-#include "kernels/Exp.h"
+#include "kernels/Log.h"
namespace luci_interpreter
{
-std::unique_ptr<Kernel> build_kernel_CircleExp(std::vector<const Tensor *> &&inputs,
- std::vector<Tensor *> &&outputs,
- const uint32_t op_index, KernelBuilder &builder)
+std::unique_ptr<Kernel> build_kernel_CircleLog(const luci::CircleNode *circle_node,
+ KernelBuilderHelper &helper)
{
- assert(inputs.size() == 1);
+ const auto *node = loco::must_cast<const luci::CircleLog *>(circle_node);
+ assert(node->arity() == 1);
- const Tensor *input = inputs.at(0);
- Tensor *output = outputs.at(0);
+ const Tensor *input = helper.getInputTensor(node->x());
+ Tensor *output = helper.getOutputTensor(node);
- return std::make_unique<kernels::Exp>(input, output);
+ return std::make_unique<kernels::Log>(input, output);
}
} // namespace luci_interpreter