24.02
|
Go to the documentation of this file.
20 const arm_compute::TensorInfo aclInput = armcomputetensorutils::BuildArmComputeTensorInfo(input);
21 const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
25 const arm_compute::ActivationLayerInfo activationLayerInfo =
28 return arm_compute::NEActivationLayer::validate(&aclInput, &aclOutput, activationLayerInfo);
45 const arm_compute::ActivationLayerInfo activationLayerInfo =
48 arm_compute::ITensor& input = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
49 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
51 m_SqrtLayer.configure(&input, &output, activationLayerInfo);
#define ARMNN_ASSERT(COND)
An ActivationDescriptor for the ActivationLayer.
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
virtual void Execute() const override
LayerDescriptor m_Parameters
arm_compute::Status NeonSqrtWorkloadValidate(const TensorInfo &input, const TensorInfo &output)
Contains information about TensorInfos of a layer.
ActivationFunction m_Function
The activation function to use (Sigmoid, TanH, Linear, ReLu, BoundedReLu, SoftReLu,...
arm_compute::ActivationLayerInfo ConvertActivationDescriptorToAclActivationLayerInfo(const ActivationDescriptor &actDesc)
std::vector< ITensorHandle * > m_Outputs
UnaryOperation m_Operation
Specifies the elementwiseUnary operation to execute.
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
ElementwiseUnaryQueueDescriptor m_Data
Copyright (c) 2021 ARM Limited and Contributors.
NeonSqrtWorkload(const ElementwiseUnaryQueueDescriptor &descriptor, const WorkloadInfo &info)
#define ARMNN_SCOPED_PROFILING_EVENT_NEON_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
std::vector< ITensorHandle * > m_Inputs