| 661 | #undef REGISTER_OP_BY_NAME |
| 662 | |
| 663 | static Status KvApplyGradientDescentShapeFn(InferenceContext* c) { |
| 664 | ShapeHandle unused; |
| 665 | TF_RETURN_IF_ERROR(c->WithRank(c->input(1), 0, &unused)); // alpha |
| 666 | ShapeHandle grad = ShapeOrHandleShape(c, 2); |
| 667 | ShapeHandle indices; |
| 668 | TF_RETURN_IF_ERROR(c->WithRank(c->input(3), 1, &indices)); |
| 669 | DimensionHandle unused2; |
| 670 | TF_RETURN_IF_ERROR(c->Merge(c->Dim(indices, 0), c->Dim(grad, 0), &unused2)); |
| 671 | return Status::OK(); |
| 672 | } |
| 673 | |
| 674 | #define REGISTER_OP_BY_NAME(name) \ |
| 675 | REGISTER_OP(name) \ |
nothing calls this directly
no test coverage detected