static */
| 195 | } |
| 196 | |
| 197 | /* static */ StatusOr<Shape> ShapeUtil::MakeValidatedShape( |
| 198 | PrimitiveType element_type, absl::Span<const int64> dimensions) { |
| 199 | CHECK(IsArrayPrimitiveType(element_type)) << element_type; |
| 200 | Shape result; |
| 201 | TF_RETURN_IF_ERROR(PopulateShape(element_type, dimensions, &result)); |
| 202 | return result; |
| 203 | } |
| 204 | |
| 205 | /* static */ StatusOr<Shape> ShapeUtil::MakeValidatedShape( |
| 206 | PrimitiveType element_type, absl::Span<const int64> dimensions, |
nothing calls this directly
no test coverage detected