MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / AddUsage

Function AddUsage

tensorflow/lite/delegates/gpu/cl/inference_context.cc:97–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void AddUsage(ValueId id, int task_index,
98 std::map<ValueId, int2>* usage_records) {
99 auto it = usage_records->find(id);
100 if (it == usage_records->end()) {
101 (*usage_records)[id].x = task_index;
102 (*usage_records)[id].y = task_index;
103 } else {
104 (*usage_records)[id].y = task_index;
105 }
106}
107
108} // namespace
109

Callers 1

AllocateMemoryMethod · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected