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

Function GetShapeLayoutVector

tensorflow/compiler/tf2xla/shape_util.cc:124–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124xla::StatusOr<std::vector<int>> GetShapeLayoutVector(const xla::Shape& shape) {
125 std::vector<int> layouts;
126 TF_RETURN_IF_ERROR(PopulateInfeedLayoutVector(shape, &layouts));
127 return layouts;
128}
129
130Status GetShapeWithLayout(
131 const xla::Shape& input_shape, absl::Span<const int64> minor_to_major,

Callers 1

TESTFunction · 0.85

Calls 1

Tested by 1

TESTFunction · 0.68