diff options
author | 2018-01-22 17:12:18 -0800 | |
---|---|---|
committer | 2018-01-22 17:18:21 -0800 | |
commit | f5356644fd3467afa275ec2155281825b7e927a0 (patch) | |
tree | 077ec98dece775be13263f49692f5d559bd29285 /tensorflow/core/framework/tensor.cc | |
parent | 02e141bf2d672dc858c2067c0245c23b10602f52 (diff) |
Ops to get and set individual elements of TensorLists, and their gradients.
PiperOrigin-RevId: 182861559
Diffstat (limited to 'tensorflow/core/framework/tensor.cc')
-rw-r--r-- | tensorflow/core/framework/tensor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/framework/tensor.cc b/tensorflow/core/framework/tensor.cc index 4f08cdc1d7..77a3edcc10 100644 --- a/tensorflow/core/framework/tensor.cc +++ b/tensorflow/core/framework/tensor.cc @@ -615,11 +615,11 @@ void Tensor::CheckType(DataType expected_dtype) const { void Tensor::CheckTypeAndIsAligned(DataType expected_dtype) const { CHECK_EQ(dtype(), expected_dtype); - CHECK(IsAligned()); + CHECK(IsAligned()) << "CheckTypeAndIsAligned"; } void Tensor::CheckIsAlignedAndSingleElement() const { - CHECK(IsAligned()); + CHECK(IsAligned()) << "Aligned and single element"; CHECK_EQ(1, NumElements()) << "Must have a one element tensor"; } |