2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
6 #include "NeonSoftmaxBaseWorkload.hpp"
8 #include <aclCommon/ArmComputeTensorUtils.hpp>
13 arm_compute::Status NeonSoftmaxWorkloadValidate(const TensorInfo& input,
14 const TensorInfo& output,
15 const SoftmaxDescriptor& descriptor)
17 // NOTE: We report 4D Softmax as unsupported until full support is added to ACL
18 if(input.GetShape().GetNumDimensions() >= 4u)
20 return arm_compute::Status(arm_compute::ErrorCode::RUNTIME_ERROR, "4d softmax is not supported");
23 const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
24 const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
26 return arm_compute::NESoftmaxLayer::validate(&aclInputInfo, &aclOutputInfo, descriptor.m_Beta);