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

Method Equal

tensorflow/compiler/xla/shape_util.cc:120–129  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

118} // namespace
119
120/* static */ bool ShapeUtil::Equal(const Shape& lhs, const Shape& rhs) {
121 bool equal = Shape::Equal()(lhs, rhs);
122
123 if (!equal && VLOG_IS_ON(3)) {
124 VLOG(3) << "ShapeUtil::Equal differ: lhs = " << lhs.ShortDebugString()
125 << ", rhs = " << rhs.ShortDebugString();
126 }
127
128 return equal;
129}
130
131/* static */ bool ShapeUtil::EqualIgnoringElementType(const Shape& lhs,
132 const Shape& rhs) {

Callers 1

TestGenerateOpFunction · 0.45

Calls 2

EqualClass · 0.70
ShortDebugStringMethod · 0.45

Tested by 1

TestGenerateOpFunction · 0.36