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

Method MatchesLayoutInShape

tensorflow/compiler/xla/shape_layout.cc:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49bool ShapeLayout::MatchesLayoutInShape(const Shape& shape,
50 bool minor_to_major_only) const {
51 auto equal = Shape::Equal().IgnoreDynamicDimension();
52 if (minor_to_major_only) {
53 equal.MinorToMajorOnlyInLayout();
54 }
55 return equal(shape, shape_);
56}
57
58const Layout& ShapeLayout::layout() const {
59 CHECK(LayoutIsSet());

Callers 8

RunHelperMethod · 0.80
SetOperandLayoutMethod · 0.80
SetResultLayoutMethod · 0.80
CheckCallLayoutFunction · 0.80
CheckWhileLayoutFunction · 0.80
CheckConditionalLayoutFunction · 0.80
RunOnComputationMethod · 0.80

Calls 2

EqualClass · 0.70
equalFunction · 0.50

Tested by

no test coverage detected