diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-12-19 15:45:38 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-12-19 16:36:36 -0800 |
commit | 899955ac0aa0cd5ddd6536700e8386d8616ac1a9 (patch) | |
tree | f8433d64ffbfca2f4cc0b6ffa79a7d70b04a32fe /tensorflow/compiler/xla/layout_util.cc | |
parent | 42abdad1de3c25641fe857c29f38fe27c34fd1ff (diff) |
[XLA] Fix return type of LayoutUtil::PaddedDimensions
We should not use const here.
PiperOrigin-RevId: 179614367
Diffstat (limited to 'tensorflow/compiler/xla/layout_util.cc')
-rw-r--r-- | tensorflow/compiler/xla/layout_util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/compiler/xla/layout_util.cc b/tensorflow/compiler/xla/layout_util.cc index f9803be32f..6435226fbe 100644 --- a/tensorflow/compiler/xla/layout_util.cc +++ b/tensorflow/compiler/xla/layout_util.cc @@ -270,8 +270,8 @@ Layout CreateDefaultLayoutForRank(int64 rank) { return false; } -/* static */ tensorflow::gtl::ArraySlice<const int64> -LayoutUtil::PaddedDimensions(const Shape& shape) { +/* static */ tensorflow::gtl::ArraySlice<int64> LayoutUtil::PaddedDimensions( + const Shape& shape) { CHECK(IsDense(shape)); return AsInt64Slice(shape.layout().padded_dimensions()); } |