Transfers shape of input(0) to output(0), after asserting its rank is .
| 171 | |
| 172 | // Transfers shape of input(0) to output(0), after asserting its rank is <rank>. |
| 173 | inline Status UnchangedShapeWithRank(shape_inference::InferenceContext* c, |
| 174 | int32 rank) { |
| 175 | ShapeHandle out; |
| 176 | TF_RETURN_IF_ERROR(c->WithRank(c->input(0), rank, &out)); |
| 177 | c->set_output(0, out); |
| 178 | return Status::OK(); |
| 179 | } |
| 180 | |
| 181 | // Transfers shape of input(0) to output(0), after asserting its rank >= <rank>. |
| 182 | inline Status UnchangedShapeWithRankAtLeast( |
no test coverage detected