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

Method GetBufferHandle

tensorflow/lite/interpreter.cc:303–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303TfLiteStatus Interpreter::GetBufferHandle(int tensor_index,
304 TfLiteBufferHandle* buffer_handle,
305 TfLiteDelegate** delegate) {
306 TF_LITE_ENSURE(context_, tensor_index < tensors_size());
307 std::vector<TfLiteTensor>& tensors = primary_subgraph().tensors();
308 TfLiteTensor* tensor = &tensors[tensor_index];
309
310 *delegate = tensor->delegate;
311 *buffer_handle = tensor->buffer_handle;
312
313 return kTfLiteOk;
314}
315
316void Interpreter::SetProfiler(Profiler* profiler) {
317 for (auto& subgraph : subgraphs_) subgraph->SetProfiler(profiler);

Callers

nothing calls this directly

Calls 1

tensorsMethod · 0.80

Tested by

no test coverage detected