static */
| 313 | } |
| 314 | |
| 315 | /* static */ void ShapeUtil::AppendMajorDimension(int bound, Shape* shape) { |
| 316 | CHECK(LayoutUtil::IsDenseArray(*shape)); |
| 317 | shape->mutable_layout()->add_minor_to_major(shape->rank()); |
| 318 | shape->add_dimensions(bound); |
| 319 | TF_DCHECK_OK(ValidateShape(*shape)); |
| 320 | } |
| 321 | |
| 322 | /* static */ bool ShapeUtil::ElementIsIntegral(const Shape& shape) { |
| 323 | return primitive_util::IsIntegralType(shape.element_type()); |
nothing calls this directly
no test coverage detected