22 constexpr
unsigned int width = 2;
23 constexpr
unsigned int height = 3;
27 std::vector<float> input =
34 std::vector<float> actualOutput(tensorInfo.GetNumElements());
35 std::vector<float> expectedOutput(tensorInfo.GetNumElements());
37 std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory.
CreateTensorHandle(tensorInfo);
38 std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory.
CreateTensorHandle(tensorInfo);
43 AddInputToWorkload(data, info, tensorInfo, inputHandle.get());
44 AddOutputToWorkload(data, info, tensorInfo, outputHandle.get());
55 SetWorkloadOutput(refData, refInfo, 0, tensorInfo, &refHandle);
59 inputHandle->Allocate();
60 outputHandle->Allocate();
64 workload->PostAllocationConfigure();
78 outputHandle->GetShape(),
79 tensorInfo.GetShape());
LayerTestResult< float, 2 > FakeQuantizationTest(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
float m_Min
Minimum value.
virtual std::unique_ptr< IWorkload > CreateFakeQuantization(const FakeQuantizationQueueDescriptor &descriptor, const WorkloadInfo &info) const
void IgnoreUnused(Ts &&...)
LayerDescriptor m_Parameters
std::shared_ptr< IMemoryManager > IMemoryManagerSharedPtr
void CopyDataFromITensorHandle(void *memory, const armnn::ITensorHandle *tensorHandle)
Contains information about TensorInfos of a layer.
virtual std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo) const =0
float m_Max
Maximum value.
void CopyDataToITensorHandle(armnn::ITensorHandle *tensorHandle, const void *memory)