| 27 | namespace { |
| 28 | |
| 29 | Status DequeueManyV2Shape(InferenceContext* c, ShapeHandle n_shape) { |
| 30 | auto* t = c->input_handle_shapes_and_types(0); |
| 31 | if (t != nullptr && t->size() == c->num_outputs()) { |
| 32 | for (int i = 0; i < c->num_outputs(); ++i) { |
| 33 | ShapeHandle combined_shape; |
| 34 | TF_RETURN_IF_ERROR( |
| 35 | c->Concatenate(n_shape, (*t)[i].shape, &combined_shape)); |
| 36 | c->set_output(i, combined_shape); |
| 37 | } |
| 38 | return Status::OK(); |
| 39 | } else { |
| 40 | return shape_inference::UnknownShape(c); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | } // namespace |
| 45 |
no test coverage detected