| 38 | } |
| 39 | |
| 40 | Status TwoElementVectorAndScalarOutputs(InferenceContext* c) { |
| 41 | ShapeHandle handle; |
| 42 | DimensionHandle unused_handle; |
| 43 | for (int i = 0; i < c->num_inputs(); ++i) { |
| 44 | TF_RETURN_IF_ERROR(c->WithRank(c->input(i), 1, &handle)); |
| 45 | TF_RETURN_IF_ERROR(c->WithValue(c->Dim(handle, 0), 2, &unused_handle)); |
| 46 | } |
| 47 | for (int i = 0; i < c->num_outputs(); ++i) { |
| 48 | c->set_output(i, c->Scalar()); |
| 49 | } |
| 50 | return Status::OK(); |
| 51 | } |
| 52 | |
| 53 | Status TwoElementOutput(InferenceContext* c) { |
| 54 | c->set_output(0, c->Vector(2)); |
nothing calls this directly
no test coverage detected