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

Method EqualIgnoringFpPrecision

tensorflow/compiler/xla/shape_util.cc:142–151  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

140}
141
142/* static */ bool ShapeUtil::EqualIgnoringFpPrecision(const Shape& lhs,
143 const Shape& rhs) {
144 bool equal = Shape::Equal().IgnoreFpPrecision()(lhs, rhs);
145 if (!equal && VLOG_IS_ON(3)) {
146 VLOG(3) << "ShapeUtil::EqualIgnoringFpPrecision differ: lhs = "
147 << lhs.ShortDebugString() << ", rhs = " << rhs.ShortDebugString();
148 }
149
150 return equal;
151}
152
153/* static */ int64 ShapeUtil::TrueRank(const Shape& shape) {
154 int64 accum = 0;

Callers

nothing calls this directly

Calls 2

EqualClass · 0.70
ShortDebugStringMethod · 0.45

Tested by

no test coverage detected