static */
| 250 | } |
| 251 | |
| 252 | /* static */ Status ShapeUtil::PopulateShape(PrimitiveType element_type, |
| 253 | absl::Span<const int64> dimensions, |
| 254 | Shape* shape) { |
| 255 | shape->Clear(); |
| 256 | shape->set_element_type(element_type); |
| 257 | for (int64 dimension : dimensions) { |
| 258 | shape->add_dimensions(dimension); |
| 259 | } |
| 260 | LayoutUtil::SetToDefaultLayout(shape); |
| 261 | return ValidateShape(*shape); |
| 262 | } |
| 263 | |
| 264 | /* static */ Shape ShapeUtil::MakeTupleShape(absl::Span<const Shape> shapes) { |
| 265 | Shape result; |
nothing calls this directly
no test coverage detected