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

Function AddWorkloadStructure

src/armnn/LoadedNetwork.cpp:70–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void AddWorkloadStructure(std::unique_ptr<TimelineUtilityMethods>& timelineUtils,
71 std::unique_ptr<IWorkload>& workload,
72 const Layer& layer)
73{
74 // Add workload to the post-optimisation network structure
75 timelineUtils->CreateTypedEntity(workload->GetGuid(), LabelsAndEventClasses::WORKLOAD_GUID);
76 timelineUtils->MarkEntityWithLabel(workload->GetGuid(),
77 layer.GetBackendId().Get(),
78 LabelsAndEventClasses::BACKENDID_GUID);
79
80 // Link the workload to the layer
81 timelineUtils->CreateRelationship(ProfilingRelationshipType::RetentionLink,
82 layer.GetGuid(),
83 workload->GetGuid(),
84 LabelsAndEventClasses::CHILD_GUID);
85}
86
87} // anonymous
88

Callers 4

LoadedNetworkMethod · 0.85
SendNetworkStructureMethod · 0.85
EnqueueInputMethod · 0.85
EnqueueOutputMethod · 0.85

Calls 6

CreateTypedEntityMethod · 0.80
MarkEntityWithLabelMethod · 0.80
GetGuidMethod · 0.45
GetMethod · 0.45
GetBackendIdMethod · 0.45
CreateRelationshipMethod · 0.45

Tested by

no test coverage detected