diff options
author | Jared Duke <jdduke@google.com> | 2018-07-02 11:53:53 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-07-02 11:57:28 -0700 |
commit | 04220939e1f160db5dafb9387ee5cf5ca61958d9 (patch) | |
tree | 07910af31c90e4a06c10f555f997e325ef04b019 /tensorflow/contrib/lite/context.h | |
parent | 59f904d3f4f988191f0352de2d7d865553d3f313 (diff) |
Avoid redundant TFLite tensor reallocations
PiperOrigin-RevId: 202988873
Diffstat (limited to 'tensorflow/contrib/lite/context.h')
-rw-r--r-- | tensorflow/contrib/lite/context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/contrib/lite/context.h b/tensorflow/contrib/lite/context.h index 1265c4cba9..4f260ad40a 100644 --- a/tensorflow/contrib/lite/context.h +++ b/tensorflow/contrib/lite/context.h @@ -245,7 +245,8 @@ void TfLiteTensorReset(TfLiteType type, const char* name, TfLiteIntArray* dims, const void* allocation, bool is_variable, TfLiteTensor* tensor); -// Resize the allocated data of a (dynamic) tensor. +// Resize the allocated data of a (dynamic) tensor. Tensors with allocation +// types other than kTfLiteDynamic will be ignored. void TfLiteTensorRealloc(size_t num_bytes, TfLiteTensor* tensor); // A structure representing an instance of a node. |