Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include "LayerTestResult.hpp" |
| 9 | |
| 10 | #include <backendsCommon/IBackendInternal.hpp> |
| 11 | #include <backendsCommon/WorkloadFactory.hpp> |
| 12 | |
| 13 | #if defined(ARMNNREF_ENABLED) |
| 14 | void LstmUtilsZeroVectorTest(); |
| 15 | void LstmUtilsMeanStddevNormalizationNoneZeroInputTest(); |
| 16 | void LstmUtilsMeanStddevNormalizationAllZeroInputTest(); |
| 17 | void LstmUtilsMeanStddevNormalizationMixedZeroInputTest(); |
| 18 | void LstmUtilsVectorBatchVectorCwiseProductTest(); |
| 19 | void LstmUtilsVectorBatchVectorAddTest(); |
| 20 | #endif |
| 21 | |
| 22 | LayerTestResult<float, 2> LstmLayerFloat32WithCifgWithPeepholeNoProjectionTest( |
| 23 | armnn::IWorkloadFactory& workloadFactory, |
| 24 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 25 | |
| 26 | LayerTestResult<float, 2> LstmLayerFloat32NoCifgNoPeepholeNoProjectionTest( |
| 27 | armnn::IWorkloadFactory& workloadFactory, |
| 28 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 29 | |
| 30 | LayerTestResult<float, 2> LstmLayerFloat32NoCifgWithPeepholeWithProjectionTest( |
| 31 | armnn::IWorkloadFactory& workloadFactory, |
| 32 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 33 | |
| 34 | LayerTestResult<float, 2> LstmLayerFloat32NoCifgWithPeepholeWithProjectionWithLayerNormTest( |
| 35 | armnn::IWorkloadFactory& workloadFactory, |
| 36 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 37 | |
| 38 | LayerTestResult<int16_t, 2> LstmLayerInt16NoCifgNoPeepholeNoProjectionTest( |
| 39 | armnn::IWorkloadFactory& workloadFactory, |
| 40 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 41 | |
| 42 | LayerTestResult<int16_t, 2> LstmLayerInt16WithCifgWithPeepholeNoProjectionTest( |
| 43 | armnn::IWorkloadFactory& workloadFactory, |
| 44 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 45 | |
| 46 | LayerTestResult<int16_t, 2> LstmLayerInt16NoCifgWithPeepholeWithProjectionTest( |
| 47 | armnn::IWorkloadFactory& workloadFactory, |
| 48 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 49 | |
| 50 | LayerTestResult<int16_t, 2> LstmLayerInt16NoCifgNoPeepholeNoProjectionInt16ConstantTest( |
| 51 | armnn::IWorkloadFactory& workloadFactory, |
| 52 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 53 | |
| 54 | // |
| 55 | // QuantizedLstm |
| 56 | // |
| 57 | |
| 58 | LayerTestResult<uint8_t, 2> QuantizedLstmTest( |
| 59 | armnn::IWorkloadFactory& workloadFactory, |
| 60 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |