diff options
author | Chris Leary <leary@google.com> | 2018-08-02 20:58:37 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-02 21:02:21 -0700 |
commit | 222f1396a6e487142c2c2447ede5f5df0529a3d0 (patch) | |
tree | 00563ad875864a8710e0096c117f80897564bbff /tensorflow/compiler/xla/layout_util.cc | |
parent | eecadedbaae7b938e8a80dfb60c52679bcbf7196 (diff) |
[XLA] Add guard for bytes accessed in HloCostAnalysis, need layout to determine.
PiperOrigin-RevId: 207213865
Diffstat (limited to 'tensorflow/compiler/xla/layout_util.cc')
-rw-r--r-- | tensorflow/compiler/xla/layout_util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/layout_util.cc b/tensorflow/compiler/xla/layout_util.cc index 15eeb2ea13..b72d190d54 100644 --- a/tensorflow/compiler/xla/layout_util.cc +++ b/tensorflow/compiler/xla/layout_util.cc @@ -297,7 +297,7 @@ Layout CreateDefaultLayoutForRank(int64 rank) { shape.layout().padded_dimensions_size() == 0) { return false; } - CHECK(IsDenseArray(shape)); + CHECK(IsDenseArray(shape)) << shape.ShortDebugString(); CHECK_EQ(shape.dimensions_size(), shape.layout().padded_dimensions_size()); for (int64 i = 0; i < shape.dimensions_size(); ++i) { if (shape.layout().padded_dimensions(i) > shape.dimensions(i)) { |