12 #include <arm_compute/runtime/NEON/functions/NEActivationLayer.h>
21 const arm_compute::TensorInfo aclInput = armcomputetensorutils::BuildArmComputeTensorInfo(input);
22 const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
24 const arm_compute::ActivationLayerInfo activationLayerInfo =
27 return arm_compute::NEActivationLayer::validate(&aclInput,
44 const arm_compute::ActivationLayerInfo activationLayerInfo =
47 arm_compute::ITensor& input = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
48 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
50 auto layer = std::make_unique<arm_compute::NEActivationLayer>();
51 layer->configure(&input, &output, activationLayerInfo);
53 m_ActivationLayer.reset(layer.release());
59 m_ActivationLayer->run();