ArmNN
 24.02
NeonConvertFp16ToFp32Workload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <arm_compute/runtime/NEON/functions/NECast.h>
11 #include <memory>
13 
14 
15 namespace armnn
16 {
17 
18 arm_compute::Status NeonConvertFp16ToFp32WorkloadValidate(const TensorInfo& input, const TensorInfo& output);
19 
20 class NeonConvertFp16ToFp32Workload : public Float16ToFloat32Workload<ConvertFp16ToFp32QueueDescriptor>
21 {
22 public:
24  virtual void Execute() const override;
25  // Replace input tensor handle with the given TensorHandle
26  void ReplaceInputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override;
27 
28  // Replace output tensor handle with the given TensorHandle
29  void ReplaceOutputTensorHandle(ITensorHandle* tensorHandle, unsigned int slot) override;
30 private:
31  using TensorHandlePair = std::pair<const ITensorHandle*, ITensorHandle*>;
32  std::vector<TensorHandlePair> m_TensorHandlePairs;
33  virtual void Reconfigure();
34  mutable std::unique_ptr<arm_compute::NECast> m_Cast;
35 };
36 
37 } //namespace armnn
armnn::NeonConvertFp16ToFp32Workload::ReplaceInputTensorHandle
void ReplaceInputTensorHandle(ITensorHandle *tensorHandle, unsigned int slot) override
Definition: NeonConvertFp16ToFp32Workload.cpp:78
WorkloadData.hpp
armnn::ITensorHandle
Definition: ITensorHandle.hpp:16
armnn::NeonConvertFp16ToFp32Workload::ReplaceOutputTensorHandle
void ReplaceOutputTensorHandle(ITensorHandle *tensorHandle, unsigned int slot) override
Definition: NeonConvertFp16ToFp32Workload.cpp:95
armnn::NeonConvertFp16ToFp32WorkloadValidate
arm_compute::Status NeonConvertFp16ToFp32WorkloadValidate(const TensorInfo &input, const TensorInfo &output)
Definition: NeonConvertFp16ToFp32Workload.cpp:19
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
Workload.hpp
armnn::NeonConvertFp16ToFp32Workload
Definition: NeonConvertFp16ToFp32Workload.hpp:20
armnn::NeonConvertFp16ToFp32Workload::Execute
virtual void Execute() const override
Definition: NeonConvertFp16ToFp32Workload.cpp:51
armnn::BoostLogSeverityMapping::info
@ info
armnn::Status
Status
Definition: Types.hpp:42
NeonWorkloadUtils.hpp
armnn::ConvertFp16ToFp32QueueDescriptor
Definition: WorkloadData.hpp:452
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::NeonConvertFp16ToFp32Workload::NeonConvertFp16ToFp32Workload
NeonConvertFp16ToFp32Workload(const ConvertFp16ToFp32QueueDescriptor &descriptor, const WorkloadInfo &info)
Definition: NeonConvertFp16ToFp32Workload.cpp:29
armnn::MultiTypedWorkload
Definition: Workload.hpp:160