17 for (
unsigned int i = 0; i < numElements; ++i)
19 switch (OutputDataType)
27 out.
Set(std::floor(in.
Get()));
40 for (
unsigned int i = 0; i < numElements; ++i)
52 for (
unsigned int i = 0; i < numElements; ++i)
54 out.
Set(
static_cast<float>(in.
Get()));
78 if (inputTensorInfo.IsQuantized())
80 inputTensorInfo.SetQuantizationScale(1.0f);
81 inputTensorInfo.SetQuantizationOffset(0);
83 if (outputTensorInfo.IsQuantized())
85 outputTensorInfo.SetQuantizationScale(1.0f);
86 outputTensorInfo.SetQuantizationOffset(0);
93 inputTensorInfo.GetNumElements(),
94 outputTensorInfo.GetDataType());
100 inputTensorInfo.GetNumElements(),
101 outputTensorInfo.GetDataType());
107 inputTensorInfo.GetNumElements(),
108 outputTensorInfo.GetDataType());
#define ARMNN_SCOPED_PROFILING_EVENT_REF_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
CastQueueDescriptor m_Data
virtual IType Get() const =0
virtual void Set(IType right)=0
void Execute() const override
Copyright (c) 2021 ARM Limited and Contributors.
std::unique_ptr< Decoder< T > > MakeDecoder(const TensorInfo &info, const void *data=nullptr)
std::unique_ptr< Encoder< T > > MakeEncoder(const TensorInfo &info, void *data=nullptr)
armnn::TensorInfo GetTensorInfo(unsigned int numberOfBatches, unsigned int numberOfChannels, unsigned int height, unsigned int width, const armnn::DataLayout dataLayout, const armnn::DataType dataType)