| 62 | } |
| 63 | |
| 64 | inline void ExecuteWorkload(armnn::IWorkload& workload, |
| 65 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 66 | bool memoryManagementRequested = true) |
| 67 | { |
| 68 | const bool manageMemory = memoryManager && memoryManagementRequested; |
| 69 | |
| 70 | // Acquire working memory (if needed) |
| 71 | if (manageMemory) |
| 72 | { |
| 73 | memoryManager->Acquire(); |
| 74 | } |
| 75 | |
| 76 | // Perform PostAllocationConfiguration |
| 77 | workload.PostAllocationConfigure(); |
| 78 | |
| 79 | // Execute the workload |
| 80 | workload.Execute(); |
| 81 | |
| 82 | // Release working memory (if needed) |
| 83 | if (manageMemory) |
| 84 | { |
| 85 | memoryManager->Release(); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | inline armnn::Optional<armnn::DataType> GetBiasTypeFromWeightsType(armnn::Optional<armnn::DataType> weightsType) |
| 90 | { |
no test coverage detected