static */
| 262 | } |
| 263 | |
| 264 | /* static */ Shape ShapeUtil::MakeTupleShape(absl::Span<const Shape> shapes) { |
| 265 | Shape result; |
| 266 | result.set_element_type(TUPLE); |
| 267 | result.mutable_tuple_shapes()->reserve(shapes.size()); |
| 268 | for (const auto& shape : shapes) { |
| 269 | AppendShapeToTuple(shape, &result); |
| 270 | } |
| 271 | TF_DCHECK_OK(ValidateShapeWithOptionalLayout(result)); |
| 272 | return result; |
| 273 | } |
| 274 | |
| 275 | /* static */ Shape ShapeUtil::MakeOpaqueShape() { |
| 276 | Shape result; |
nothing calls this directly
no test coverage detected