Clarify ownership story of TfLiteIntArray* nodes_to_replace
authorAndrew Selle <aselle@google.com>
Fri, 23 Feb 2018 00:49:48 +0000 (16:49 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 23 Feb 2018 00:59:52 +0000 (16:59 -0800)
PiperOrigin-RevId: 186696787

tensorflow/contrib/lite/context.h

index c604cbc..ed7f451 100644 (file)
@@ -283,7 +283,8 @@ typedef struct TfLiteContext {
                                          TfLiteNode** node,
                                          TfLiteRegistration** registration);
 
-  // Replace ops with delegate.
+  // Replace ops with one or more stub delegate operations. This function
+  // does not take ownership of `nodes_to_replace`.
   TfLiteStatus (*ReplaceSubgraphsWithDelegateKernels)(
       struct TfLiteContext*, TfLiteRegistration registration,
       const TfLiteIntArray* nodes_to_replace);