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

Method HandleTypeLabel

src/timelineDecoder/JSONTimelineDecoder.cpp:133–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void JSONTimelineDecoder::HandleTypeLabel(const ITimelineDecoder::Relationship& relationship)
134{
135 if (m_Model.relationships.count(relationship.m_HeadGuid) != 0)
136 {
137 Relationship labelRelation = m_Model.relationships.at(relationship.m_HeadGuid);
138 if (m_Model.jsonEntities.count(labelRelation.m_HeadGuid) != 0)
139 {
140 JSONEntity& headEntity = m_Model.jsonEntities.at(labelRelation.m_HeadGuid);
141 std::string type = m_Model.labels.at(labelRelation.m_TailGuid).m_Name;
142 headEntity.SetType(type);
143 }
144 }
145 else
146 {
147 m_Model.relationships.insert({relationship.m_Guid, relationship});
148 }
149}
150
151void JSONTimelineDecoder::HandleNameLabel(const ITimelineDecoder::Relationship& relationship)
152{

Callers

nothing calls this directly

Calls 2

countMethod · 0.45
SetTypeMethod · 0.45

Tested by

no test coverage detected