ArmNN
 20.02
NeonSoftmaxBaseWorkload.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
10 
11 #include <arm_compute/runtime/NEON/functions/NESoftmaxLayer.h>
12 
13 namespace armnn
14 {
15 
17  const TensorInfo& output,
18  const SoftmaxDescriptor& descriptor)
19 {
20  const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
21  const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
22 
23  unsigned int aclAxis = ComputeSoftmaxAclAxis(descriptor, input);
24  return arm_compute::NESoftmaxLayer::validate(&aclInputInfo, &aclOutputInfo, descriptor.m_Beta, aclAxis);
25 }
26 
27 } //namespace armnn
28 
float m_Beta
Exponentiation value.
Copyright (c) 2020 ARM Limited.
Status
enumeration
Definition: Types.hpp:26
unsigned int ComputeSoftmaxAclAxis(const SoftmaxDescriptor &softmaxDesc, const armnn::TensorInfo &tensor)
arm_compute::Status NeonSoftmaxWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const SoftmaxDescriptor &descriptor)
A SoftmaxDescriptor for the SoftmaxLayer.