24.08
|
Go to the documentation of this file.
14 #include <arm_compute/runtime/NEON/functions/NESoftmaxLayer.h>
23 const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
24 const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
27 return arm_compute::NESoftmaxLayer::validate(&aclInputInfo,
34 const WorkloadInfo& info, std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager)
46 arm_compute::ITensor& input = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
47 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
49 auto layer = std::make_unique<arm_compute::NESoftmaxLayer>(memoryManager);
52 m_SoftmaxLayer.reset(layer.release());
58 m_SoftmaxLayer->run();
void ValidateInputsOutputs(const std::string &descName, unsigned int numExpectedIn, unsigned int numExpectedOut) const
float m_Beta
Exponentiation value.
NeonSoftmaxWorkload(const SoftmaxQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager)
LayerDescriptor m_Parameters
Contains information about TensorInfos of a layer.
arm_compute::Status NeonSoftmaxWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor)
std::vector< ITensorHandle * > m_Outputs
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
SoftmaxQueueDescriptor m_Data
int m_Axis
Scalar, defaulted to the last index (-1), specifying the dimension the activation will be performed o...
Copyright (c) 2021 ARM Limited and Contributors.
#define ARMNN_SCOPED_PROFILING_EVENT_NEON_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
virtual void Execute() const override
A SoftmaxDescriptor for the SoftmaxLayer.
int ComputeAclAxis(const int &armnnAxis, const armnn::TensorInfo &tensor)
Function to convert ArmNN axis (left to right) to ACL axis (right to left) ranging from [-rank,...
std::vector< ITensorHandle * > m_Inputs