aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/context.h
diff options
context:
space:
mode:
authorGravatar Yu-Cheng Ling <ycling@google.com>2018-07-20 15:30:19 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-20 15:33:44 -0700
commit8be889a3034b4dd5ea46330ffad185fc91901723 (patch)
treedff84649d7771ebc5fb00aafcbd34ea5269b62a5 /tensorflow/contrib/lite/context.h
parentee851755a687ec126280bb19e9c9b892b36e58a3 (diff)
Comment about TfLiteDelegateParams
PiperOrigin-RevId: 205463881
Diffstat (limited to 'tensorflow/contrib/lite/context.h')
-rw-r--r--tensorflow/contrib/lite/context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/context.h b/tensorflow/contrib/lite/context.h
index 1ff8843fa7..cbfce12d7e 100644
--- a/tensorflow/contrib/lite/context.h
+++ b/tensorflow/contrib/lite/context.h
@@ -464,6 +464,12 @@ typedef struct _TfLiteDelegate {
} TfLiteDelegate;
// WARNING: This is an experimental interface that is subject to change.
+//
+// Currently, TfLiteDelegateParams has to be allocated in a way that it's
+// trivially destructable. It will be stored as `builtin_data` field in
+// `TfLiteNode` of the delegate node.
+//
+// See also the `CreateDelegateParams` function in `interpreter.cc` details.
typedef struct {
TfLiteDelegate* delegate;
TfLiteIntArray* nodes_to_replace;