MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / KvApplyGradientDescentShapeFn

Function KvApplyGradientDescentShapeFn

tensorflow/core/ops/training_ali_ops.cc:663–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661#undef REGISTER_OP_BY_NAME
662
663static 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) \
675REGISTER_OP(name) \

Callers

nothing calls this directly

Calls 5

ShapeOrHandleShapeFunction · 0.70
WithRankMethod · 0.45
inputMethod · 0.45
MergeMethod · 0.45
DimMethod · 0.45

Tested by

no test coverage detected