| 50 | } |
| 51 | |
| 52 | Status ExpectArray(const Shape& shape, absl::string_view op_type) { |
| 53 | if (!shape.IsArray()) { |
| 54 | return InvalidArgument("Expected array argument for %s, but got %s.", |
| 55 | string(op_type), ShapeUtil::HumanString(shape)); |
| 56 | } |
| 57 | return Status::OK(); |
| 58 | } |
| 59 | |
| 60 | Status VerifyReducerShape(const ProgramShape& reducer_shape, |
| 61 | absl::Span<const Shape* const> init_value_shapes, |
no test coverage detected