File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -298,15 +298,23 @@ class Interpreter {
298
298
return primary_subgraph ().tensor (tensor_index);
299
299
}
300
300
301
- // / Returns a pointer to an operation and registration data structure if in
302
- // / bounds from the primary subgraph(subgraph_[0]).
301
+ // Returns a pointer to an operation and registration data structure if in
302
+ // bounds from the primary subgraph(subgraph_[0]).
303
+ //
304
+ // Warning: No guarantee is given about address stability. Operations
305
+ // (including but not limited to: `Invoke`, `ModifyGraphWithDelegate`) may
306
+ // invalidate the pointer returned by this function.
303
307
const std::pair<TfLiteNode, TfLiteRegistration>* node_and_registration (
304
308
int node_index) const {
305
309
return primary_subgraph ().node_and_registration (node_index);
306
310
}
307
311
308
- // / Returns a pointer to an operation and registration data structure if in
309
- // / bounds.
312
+ // Returns a pointer to an operation and registration data structure if in
313
+ // bounds.
314
+ //
315
+ // Warning: No guarantee is given about address stability. Operations
316
+ // (including but not limited to: `Invoke`, `ModifyGraphWithDelegate`) may
317
+ // invalidate the pointer returned by this function.
310
318
const std::pair<TfLiteNode, TfLiteRegistration>* node_and_registration (
311
319
int subgraph_index, int node_index) const {
312
320
return subgraph (subgraph_index)->node_and_registration (node_index);
You can’t perform that action at this time.
0 commit comments