MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MakeDescendingLayout

Method MakeDescendingLayout

tensorflow/compiler/xla/layout_util.cc:81–85  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

79}
80
81/* static */ Layout LayoutUtil::MakeDescendingLayout(int64 rank) {
82 std::vector<int64> layout(rank);
83 std::iota(layout.rbegin(), layout.rend(), static_cast<int64>(0));
84 return MakeLayout(layout);
85}
86
87/* static */ Layout LayoutUtil::MakeLayoutFromMajorToMinor(
88 absl::Span<const int64> major_to_minor) {

Callers

nothing calls this directly

Calls 3

rbeginMethod · 0.80
rendMethod · 0.80
MakeLayoutFunction · 0.50

Tested by

no test coverage detected