static */
| 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; |
nothing calls this directly
no test coverage detected