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

Method HandleConnection

src/profiling/test/TimelineModel.cpp:156–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void TimelineModel::HandleConnection(const arm::pipe::ITimelineDecoder::Relationship& relationship)
157{
158 Entity* outputLayer = FindEntity(relationship.m_HeadGuid);
159 if (outputLayer == nullptr)
160 {
161 std::stringstream ss;
162 ss << "could not find output entity [" << relationship.m_HeadGuid << "]";
163 ss << " of connection [" << relationship.m_Guid << "]";
164 m_Errors.push_back(arm::pipe::ProfilingException(ss.str()));
165 return;
166 }
167 Entity* inputLayer = FindEntity(relationship.m_TailGuid);
168 if (inputLayer == nullptr)
169 {
170 std::stringstream ss;
171 ss << "could not find input entity [" << relationship.m_TailGuid << "]";
172 ss << " of connection [" << relationship.m_Guid << "]";
173 m_Errors.push_back(arm::pipe::ProfilingException(ss.str()));
174 return;
175 }
176 Connection connection(relationship.m_Guid, outputLayer, inputLayer);
177 outputLayer->AddConnection(connection);
178}
179
180void TimelineModel::HandleChild(const arm::pipe::ITimelineDecoder::Relationship& relationship)
181{

Callers

nothing calls this directly

Calls 4

ProfilingExceptionClass · 0.85
push_backMethod · 0.80
strMethod · 0.45
AddConnectionMethod · 0.45

Tested by

no test coverage detected