24.08
|
Go to the documentation of this file.
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::CLActivationLayer::validate(&aclInput,
34 const arm_compute::CLCompileContext& clCompileContext)
45 const arm_compute::ActivationLayerInfo activationLayerInfo =
52 m_ActivationLayer.configure(clCompileContext, &input, &output, activationLayerInfo);
An ActivationDescriptor for the ActivationLayer.
void Execute() const override
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
arm_compute::Status ClActivationWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const ActivationDescriptor &descriptor)
LayerDescriptor m_Parameters
#define ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
ClActivationWorkload(const ActivationQueueDescriptor &descriptor, const WorkloadInfo &info, const arm_compute::CLCompileContext &clCompileContext)
Contains information about TensorInfos of a layer.
arm_compute::ActivationLayerInfo ConvertActivationDescriptorToAclActivationLayerInfo(const ActivationDescriptor &actDesc)
std::vector< ITensorHandle * > m_Outputs
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
ActivationQueueDescriptor m_Data
void RunClFunction(arm_compute::IFunction &function, const CheckLocation &location)
Copyright (c) 2021 ARM Limited and Contributors.
std::vector< ITensorHandle * > m_Inputs