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::NELogSoftmaxLayer::validate(&aclInputInfo,
35 std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager)
44 m_Data.ValidateInputsOutputs(
"NeonLogSoftmaxWorkload", 1, 1);
49 auto layer = std::make_unique<arm_compute::NELogSoftmaxLayer>(memoryManager);
51 layer->configure(&input, &output,
m_Data.m_Parameters.m_Beta, aclAxis);
52 m_LogSoftmaxLayer.reset(layer.release());
58 m_LogSoftmaxLayer->run();
#define ARMNN_SCOPED_PROFILING_EVENT_NEON_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
#define ARMNN_REPORT_PROFILING_WORKLOAD_DESC(name, desc, infos, guid)
LogSoftmaxQueueDescriptor m_Data
NeonBaseWorkload(const LogSoftmaxQueueDescriptor &descriptor, const WorkloadInfo &info)
virtual void Execute() const override
NeonLogSoftmaxWorkload(const LogSoftmaxQueueDescriptor &descriptor, const WorkloadInfo &info, std::shared_ptr< arm_compute::MemoryManagerOnDemand > &memoryManager)
Copyright (c) 2021 ARM Limited and Contributors.
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,...
DestType PolymorphicDowncast(SourceType *value)
Polymorphic downcast for build in pointers only.
arm_compute::Status NeonLogSoftmaxWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const LogSoftmaxDescriptor &descriptor)
SoftmaxDescriptor LogSoftmaxDescriptor
A LogSoftmaxDescriptor for the LogSoftmaxLayer.
LayerDescriptor m_Parameters
int m_Axis
Scalar, defaulted to the last index (-1), specifying the dimension the activation will be performed o...
float m_Beta
Exponentiation value.
Contains information about TensorInfos of a layer.