static */
| 172 | } |
| 173 | |
| 174 | /* static */ Shape ShapeUtil::MakeShape(PrimitiveType element_type, |
| 175 | absl::Span<const int64> dimensions) { |
| 176 | return MakeValidatedShape(element_type, dimensions).ValueOrDie(); |
| 177 | } |
| 178 | |
| 179 | /* static */ Shape ShapeUtil::MakeScalarShape(PrimitiveType element_type) { |
| 180 | return MakeShape(element_type, {}); |
no outgoing calls