Idriss Chaouch | 98e383e | 2023-08-28 14:28:31 +0100 | [diff] [blame^] | 1 | // |
| 2 | // Copyright © 2023 Arm Ltd and Contributors. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <armnnTestUtils/LayerTestResult.hpp> |
| 9 | #include <armnn/backends/IBackendInternal.hpp> |
| 10 | #include <armnn/backends/WorkloadFactory.hpp> |
| 11 | #include "ResolveType.hpp" |
| 12 | |
| 13 | template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> |
| 14 | LayerTestResult<T, 4> BroadcastTo4dTest(armnn::IWorkloadFactory& workloadFactory, |
| 15 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 16 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 17 | |
| 18 | template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> |
| 19 | LayerTestResult<T, 3> BroadcastTo3dAxis0Test(armnn::IWorkloadFactory& workloadFactory, |
| 20 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 21 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 22 | |
| 23 | template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> |
| 24 | LayerTestResult<T, 3> BroadcastTo3dAxis1Test(armnn::IWorkloadFactory& workloadFactory, |
| 25 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 26 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 27 | |
| 28 | template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> |
| 29 | LayerTestResult<T, 3> BroadcastTo3dAxis2Test(armnn::IWorkloadFactory& workloadFactory, |
| 30 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 31 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 32 | |
| 33 | template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> |
| 34 | LayerTestResult<T, 2> BroadcastTo2dAxis0Test(armnn::IWorkloadFactory& workloadFactory, |
| 35 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 36 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 37 | |
| 38 | template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> |
| 39 | LayerTestResult<T, 2> BroadcastTo2dAxis1Test(armnn::IWorkloadFactory& workloadFactory, |
| 40 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 41 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 42 | |
| 43 | template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> |
| 44 | LayerTestResult<T, 1> BroadcastTo1dTest(armnn::IWorkloadFactory& workloadFactory, |
| 45 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 46 | const armnn::ITensorHandleFactory& tensorHandleFactory); |