static */
| 329 | } |
| 330 | |
| 331 | /* static */ bool ShapeUtil::ElementHasBitWidth(const Shape& shape, int bits) { |
| 332 | if (!shape.IsArray()) { |
| 333 | return false; |
| 334 | } |
| 335 | return primitive_util::BitWidth(shape.element_type()) == bits; |
| 336 | } |
| 337 | |
| 338 | /* static */ bool ShapeUtil::ElementIsSigned(const Shape& shape) { |
| 339 | switch (shape.element_type()) { |
nothing calls this directly
no test coverage detected