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

Method ResetLayout

tensorflow/compiler/xla/shape_layout.cc:68–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66bool ShapeLayout::LayoutIsSet() const { return LayoutUtil::HasLayout(shape_); }
67
68void ShapeLayout::ResetLayout(const Layout& layout) {
69 CHECK(!shape_.IsTuple());
70 CHECK(!shape_.IsOpaque());
71 *shape_.mutable_layout() = layout;
72 TF_CHECK_OK(ShapeUtil::ValidateShape(shape_));
73}
74
75void ShapeLayout::ResetLayout(const Layout& layout,
76 ShapeIndexView shape_index) {

Callers 3

TEST_FFunction · 0.80
ForceParameterLayoutMethod · 0.80
ForceResultLayoutMethod · 0.80

Calls 4

ValidateShapeFunction · 0.85
IsOpaqueMethod · 0.80
mutable_layoutMethod · 0.80
IsTupleMethod · 0.45

Tested by 3

TEST_FFunction · 0.64
ForceParameterLayoutMethod · 0.64
ForceResultLayoutMethod · 0.64