blob: b229bc48a2f123f49afadbd4fe95d2822dadffd1 [file] [log] [blame]
telsoa01c577f2c2018-08-31 09:22:23 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa01c577f2c2018-08-31 09:22:23 +01004//
5
6#include "NeonSoftmaxBaseWorkload.hpp"
7
Aron Virginas-Tarc9cc8042018-11-01 16:15:57 +00008#include <aclCommon/ArmComputeTensorUtils.hpp>
telsoa01c577f2c2018-08-31 09:22:23 +01009
Matthew Benthamd80a7122019-01-08 17:52:37 +000010#include <arm_compute/runtime/NEON/functions/NESoftmaxLayer.h>
11
telsoa01c577f2c2018-08-31 09:22:23 +010012namespace armnn
13{
14
15arm_compute::Status NeonSoftmaxWorkloadValidate(const TensorInfo& input,
16 const TensorInfo& output,
17 const SoftmaxDescriptor& descriptor)
18{
telsoa01c577f2c2018-08-31 09:22:23 +010019 const arm_compute::TensorInfo aclInputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(input);
20 const arm_compute::TensorInfo aclOutputInfo = armcomputetensorutils::BuildArmComputeTensorInfo(output);
21
22 return arm_compute::NESoftmaxLayer::validate(&aclInputInfo, &aclOutputInfo, descriptor.m_Beta);
23}
24
25} //namespace armnn
26