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

Method Profile

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

Source from the content-addressed store, hash-verified

370}
371
372Status InferenceContext::Profile(ProfilingCommandQueue* queue,
373 ProfilingInfo* result) {
374 queue->ResetMeasurements();
375 for (auto& node : nodes_) {
376 queue->SetEventsLabel(node.name);
377 RETURN_IF_ERROR(node.operations[0]->AddToQueue(queue));
378 }
379 RETURN_IF_ERROR(queue->WaitForCompletion());
380 *result = queue->GetProfilingInfo();
381 return OkStatus();
382}
383
384Tensor* InferenceContext::GetTensor(ValueId id) {
385 return &tensors_[remap_from_graph_ids_to_shared_[id]];

Callers 8

profile_pythonMethod · 0.45
profile_operationsMethod · 0.45
profile_name_scopeMethod · 0.45
profile_graphMethod · 0.45
adviseMethod · 0.45
testValidProfileMethod · 0.45
_get_pprof_protoMethod · 0.45
pprof_test_helperMethod · 0.45

Calls 6

OkStatusFunction · 0.85
ResetMeasurementsMethod · 0.80
SetEventsLabelMethod · 0.80
GetProfilingInfoMethod · 0.80
AddToQueueMethod · 0.45
WaitForCompletionMethod · 0.45

Tested by 2

testValidProfileMethod · 0.36
pprof_test_helperMethod · 0.36