static */
| 162 | } |
| 163 | |
| 164 | /* static */ ProgramShape ShapeUtil::MakeProgramShape( |
| 165 | std::initializer_list<Shape> parameters, Shape result) { |
| 166 | ProgramShape program_shape; |
| 167 | for (const Shape& shape : parameters) { |
| 168 | *program_shape.add_parameters() = shape; |
| 169 | } |
| 170 | *program_shape.mutable_result() = std::move(result); |
| 171 | return program_shape; |
| 172 | } |
| 173 | |
| 174 | /* static */ Shape ShapeUtil::MakeShape(PrimitiveType element_type, |
| 175 | absl::Span<const int64> dimensions) { |
nothing calls this directly
no test coverage detected