MCPcopy Create free account
hub / github.com/ARM-software/armnn / ExecuteWorkload

Function ExecuteWorkload

include/armnnTestUtils/WorkloadTestUtils.hpp:64–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64inline 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
89inline armnn::Optional<armnn::DataType> GetBiasTypeFromWeightsType(armnn::Optional<armnn::DataType> weightsType)
90{

Callers 15

StridedSliceTestImplFunction · 0.85
MirrorPad2dTestCommonFunction · 0.85
MirrorPad3dTestCommonFunction · 0.85
MirrorPad4dTestCommonFunction · 0.85
SliceTestImplFunction · 0.85
BroadcastToTestImplFunction · 0.85
Convolution1dTestImplFunction · 0.85

Calls 4

AcquireMethod · 0.45
ExecuteMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected