aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework/tensor.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/framework/tensor.h')
-rw-r--r--tensorflow/core/framework/tensor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/framework/tensor.h b/tensorflow/core/framework/tensor.h
index 8a0c70fef2..d0f9eb56e2 100644
--- a/tensorflow/core/framework/tensor.h
+++ b/tensorflow/core/framework/tensor.h
@@ -219,7 +219,7 @@ class Tensor {
/// must check the returned tensor's alignment before calling certain
/// methods that have alignment requirement (e.g., `flat()`, `tensor()`).
///
- /// REQUIRES: `dims()` >= 2
+ /// REQUIRES: `dims()` >= 1
/// REQUIRES: `0 <= dim0_start < dim_size(0)`
Tensor SubSlice(int64 index) const;