diff options
Diffstat (limited to 'tensorflow/core/framework/tensor.h')
-rw-r--r-- | tensorflow/core/framework/tensor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tensorflow/core/framework/tensor.h b/tensorflow/core/framework/tensor.h index dd2d9a4c86..48fbd38e0c 100644 --- a/tensorflow/core/framework/tensor.h +++ b/tensorflow/core/framework/tensor.h @@ -120,7 +120,10 @@ class Tensor { // underlying refcounted storage size_t BufferHash() const; - /// Has this Tensor been initialized? + /// \brief If necessary, has this Tensor been initialized? + /// + /// Zero-element Tensors are always considered initialized, even if they + /// have never been assigned to and do not have any memory allocated. bool IsInitialized() const; /// Returns the estimated memory usage of this tensor. |