aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/layout_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/layout_util.h')
-rw-r--r--tensorflow/compiler/xla/layout_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/layout_util.h b/tensorflow/compiler/xla/layout_util.h
index b78883c2d8..af032b1cae 100644
--- a/tensorflow/compiler/xla/layout_util.h
+++ b/tensorflow/compiler/xla/layout_util.h
@@ -40,6 +40,10 @@ class LayoutUtil {
static Layout MakeLayoutFromMajorToMinor(
absl::Span<const int64> major_to_minor);
+ // Returns a layout with descending ((i.e. {n, n-1, ..., 0}) minor-to-major
+ // dimensions.
+ static Layout MakeDescendingLayout(int64 rank);
+
// Creates a sparse layout with the given maximum number of elements. (This is
// a convenience function for protobuf construction.)
static Layout MakeSparseLayout(int64 max_sparse_elements);