aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/interpreter.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-08-16 17:21:11 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-16 17:26:44 -0700
commitf682a974705f150c407f56a6d8d5df16fa2aed5f (patch)
tree23c707200e7a3296f8b14cfc2da2519a265f8971 /tensorflow/contrib/lite/interpreter.h
parentcbd2411e05fbc4c92d56190043b91ed167b94cd2 (diff)
Extend external context for Edge TPU
PiperOrigin-RevId: 209077767
Diffstat (limited to 'tensorflow/contrib/lite/interpreter.h')
-rw-r--r--tensorflow/contrib/lite/interpreter.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tensorflow/contrib/lite/interpreter.h b/tensorflow/contrib/lite/interpreter.h
index 135732917e..7d69aa2ad3 100644
--- a/tensorflow/contrib/lite/interpreter.h
+++ b/tensorflow/contrib/lite/interpreter.h
@@ -413,6 +413,10 @@ class Interpreter {
return op_reg.profiling_string(&context_, node);
}
+ // Set the value of an external context.
+ void SetExternalContext(TfLiteExternalContextType type,
+ TfLiteExternalContext* ctx);
+
private:
friend class InterpreterBuilder;
friend class InterpreterTest;
@@ -544,8 +548,6 @@ class Interpreter {
struct TfLiteContext* context, TfLiteExternalContextType type);
// Set the value of an external context.
- void SetExternalContext(TfLiteExternalContextType type,
- TfLiteExternalContext* ctx);
static void SetExternalContext(struct TfLiteContext* context,
TfLiteExternalContextType type,
TfLiteExternalContext* ctx);