diff options
Diffstat (limited to 'src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp')
-rw-r--r-- | src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp b/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp index 10142c732f..48f4975b1a 100644 --- a/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp +++ b/src/runtime/NEON/functions/NEElementwiseUnaryLayer.cpp @@ -51,4 +51,16 @@ Status NEExpLayer::validate(const ITensorInfo *input, const ITensorInfo *output) { return NEElementwiseUnaryKernel::validate(ElementWiseUnary::EXP, input, output); } + +void NENegLayer::configure(const ITensor *input, ITensor *output) +{ + auto k = arm_compute::support::cpp14::make_unique<NEElementwiseUnaryKernel>(); + k->configure(ElementWiseUnary::NEG, input, output); + _kernel = std::move(k); +} +Status NENegLayer::validate(const ITensorInfo *input, const ITensorInfo *output) +{ + return NEElementwiseUnaryKernel::validate(ElementWiseUnary::NEG, input, output); +} + } // namespace arm_compute |