Matthew Sloyan | b63a311 | 2021-09-08 13:05:51 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2021 Arm Ltd and Contributors. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include "LayerTestResult.hpp" |
| 9 | |
| 10 | #include <Half.hpp> |
| 11 | |
| 12 | #include <ResolveType.hpp> |
| 13 | |
| 14 | #include <armnn/Types.hpp> |
| 15 | |
| 16 | #include <armnn/backends/IBackendInternal.hpp> |
| 17 | #include <backendsCommon/WorkloadFactory.hpp> |
| 18 | |
| 19 | // |
| 20 | // Convolution3d |
| 21 | // |
| 22 | |
| 23 | LayerTestResult<float, 5> SimpleConvolution3d3x3x3Float32Test( |
| 24 | armnn::IWorkloadFactory& workloadFactory, |
| 25 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 26 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 27 | bool biasEnabled); |
| 28 | |
| 29 | LayerTestResult<int8_t , 5> SimpleConvolution3d3x3x3Int8Test( |
| 30 | armnn::IWorkloadFactory& workloadFactory, |
| 31 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 32 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 33 | bool biasEnabled); |
| 34 | |
Rob Hughes | eb70c91 | 2021-10-07 08:53:58 +0100 | [diff] [blame] | 35 | LayerTestResult<uint8_t, 5> SimpleConvolution3d3x3x3Uint8Test( |
Matthew Sloyan | b63a311 | 2021-09-08 13:05:51 +0100 | [diff] [blame] | 36 | armnn::IWorkloadFactory& workloadFactory, |
| 37 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 38 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 39 | bool biasEnabled); |
| 40 | |
| 41 | LayerTestResult<int16_t, 5> SimpleConvolution3d3x3x3Int16Test( |
| 42 | armnn::IWorkloadFactory& workloadFactory, |
| 43 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 44 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 45 | bool biasEnabled); |
| 46 | |
| 47 | LayerTestResult<float, 5> Convolution3d2x2x2Strides3x5x5Float32Test( |
| 48 | armnn::IWorkloadFactory& workloadFactory, |
| 49 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 50 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 51 | bool biasEnabled); |
| 52 | |
| 53 | LayerTestResult<int8_t , 5> Convolution3d2x2x2Strides3x5x5Int8Test( |
| 54 | armnn::IWorkloadFactory& workloadFactory, |
| 55 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 56 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 57 | bool biasEnabled); |
| 58 | |
Rob Hughes | eb70c91 | 2021-10-07 08:53:58 +0100 | [diff] [blame] | 59 | LayerTestResult<uint8_t, 5> Convolution3d2x2x2Strides3x5x5Uint8Test( |
Matthew Sloyan | b63a311 | 2021-09-08 13:05:51 +0100 | [diff] [blame] | 60 | armnn::IWorkloadFactory& workloadFactory, |
| 61 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 62 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 63 | bool biasEnabled); |
| 64 | |
| 65 | LayerTestResult<int16_t, 5> Convolution3d2x2x2Strides3x5x5Int16Test( |
| 66 | armnn::IWorkloadFactory& workloadFactory, |
| 67 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 68 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 69 | bool biasEnabled); |
| 70 | |
| 71 | LayerTestResult<float, 5> Convolution3d2x2x2Dilation2x2x2Float32Test( |
| 72 | armnn::IWorkloadFactory& workloadFactory, |
| 73 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 74 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 75 | bool biasEnabled); |
| 76 | |
| 77 | LayerTestResult<int8_t , 5> Convolution3d2x2x2Dilation2x2x2Int8Test( |
| 78 | armnn::IWorkloadFactory& workloadFactory, |
| 79 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 80 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 81 | bool biasEnabled); |
| 82 | |
Rob Hughes | eb70c91 | 2021-10-07 08:53:58 +0100 | [diff] [blame] | 83 | LayerTestResult<uint8_t, 5> Convolution3d2x2x2Dilation2x2x2Uint8Test( |
Matthew Sloyan | b63a311 | 2021-09-08 13:05:51 +0100 | [diff] [blame] | 84 | armnn::IWorkloadFactory& workloadFactory, |
| 85 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 86 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 87 | bool biasEnabled); |
| 88 | |
| 89 | LayerTestResult<int16_t, 5> Convolution3d2x2x2Dilation2x2x2Int16Test( |
| 90 | armnn::IWorkloadFactory& workloadFactory, |
| 91 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 92 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 93 | bool biasEnabled); |
| 94 | |
| 95 | LayerTestResult<float, 5> Convolution3dPaddingSame3x3x3Float32Test( |
| 96 | armnn::IWorkloadFactory& workloadFactory, |
| 97 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 98 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 99 | bool biasEnabled); |
| 100 | |
| 101 | LayerTestResult<int8_t , 5> Convolution3dPaddingSame3x3x3Int8Test( |
| 102 | armnn::IWorkloadFactory& workloadFactory, |
| 103 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 104 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 105 | bool biasEnabled); |
| 106 | |
Rob Hughes | eb70c91 | 2021-10-07 08:53:58 +0100 | [diff] [blame] | 107 | LayerTestResult<uint8_t, 5> Convolution3dPaddingSame3x3x3Uint8Test( |
Matthew Sloyan | b63a311 | 2021-09-08 13:05:51 +0100 | [diff] [blame] | 108 | armnn::IWorkloadFactory& workloadFactory, |
| 109 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 110 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 111 | bool biasEnabled); |
| 112 | |
| 113 | LayerTestResult<int16_t, 5> Convolution3dPaddingSame3x3x3Int16Test( |
| 114 | armnn::IWorkloadFactory& workloadFactory, |
| 115 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 116 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 117 | bool biasEnabled); |
| 118 | |
| 119 | LayerTestResult<float, 5> Convolution3dStrideDilationPadding3x3x3Float32Test( |
| 120 | armnn::IWorkloadFactory& workloadFactory, |
| 121 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 122 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 123 | bool biasEnabled); |
| 124 | |
| 125 | LayerTestResult<float, 5> Convolution3d2x2x2Stride3x3x3SmallFloat32Test( |
| 126 | armnn::IWorkloadFactory& workloadFactory, |
| 127 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 128 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 129 | bool biasEnabled); |
| 130 | |
| 131 | LayerTestResult<armnn::Half, 5> Convolution3d2x3x3Float16Test( |
| 132 | armnn::IWorkloadFactory& workloadFactory, |
| 133 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 134 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 135 | bool biasEnabled); |
| 136 | |
| 137 | LayerTestResult<armnn::Half, 5> Convolution3d2x2x2SmallFloat16Test( |
| 138 | armnn::IWorkloadFactory& workloadFactory, |
| 139 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 140 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 141 | bool biasEnabled); |