Back to Tensorflow

TfLiteExternalContext

tensorflow/lite/g3doc/api_docs/c/struct/tf-lite-external-context.html

2.21.0887 B
Original Source

TfLiteExternalContext

#include <common.h>

An external context is a collection of information unrelated to the TF Lite framework, but useful to a subset of the ops.

Summary

TF Lite knows very little about the actual contexts, but it keeps a list of them, and is able to refresh them if configurations like the number of recommended threads change.

|

Public attributes

| | --- | | Refresh)(struct TfLiteContext *context) | TfLiteStatus(* | | type | TfLiteExternalContextType |

Public attributes

Refresh

[TfLiteStatus](/lite/api_docs/c/group/c-api-types.html#group __c__ api__types_1gacf79d2fb5fa520303014d1303f1f6361)(* TfLiteExternalContext::Refresh)(struct TfLiteContext *context)

type

[TfLiteExternalContextType](/lite/api_docs/c/group/common.html#group__common_1ga6d1d3582ab46e837f9f108839232dc03)TfLiteExternalContext::type