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

Method GetLayerJSONString

src/timelineDecoder/JSONTimelineDecoder.cpp:316–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316std::string JSONTimelineDecoder::GetLayerJSONString(JSONTimelineDecoder::JSONEntity& entity, int& counter,
317 std::string& jsonEntityString)
318{
319 jsonEntityString.append("\t\t");
320 jsonEntityString.append(entity.GetName());
321 jsonEntityString.append("_");
322 jsonEntityString.append(std::to_string(counter));
323 jsonEntityString.append(": {\n");
324 jsonEntityString.append("\t\t\t");
325 jsonEntityString.append("type: Measurement,\n");
326 for (uint64_t child_entity_id : entity.childEntities)
327 {
328 JSONEntity& childEntity = m_Model.jsonEntities.at(child_entity_id);
329 jsonEntityString.append(GetJSONEntityString(childEntity, ++counter));
330 }
331 return jsonEntityString;
332}
333
334void JSONTimelineDecoder::JSONEntity::AddConnection(JSONEntity& headEntity, JSONEntity& connectedEntity)
335{

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
to_stringFunction · 0.50
GetNameMethod · 0.45

Tested by

no test coverage detected