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

Function KvResourceApplyAdagradShapeFn

tensorflow/core/ops/training_ali_ops.cc:81–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static Status KvResourceApplyAdagradShapeFn(InferenceContext* c, bool sparse) {
82 ShapeHandle unused;
83 ShapeHandle s = ShapeOrHandleShape(c, 0); // var
84 TF_RETURN_IF_ERROR(c->Merge(s, ShapeOrHandleShape(c, 1), &s)); // accum
85 TF_RETURN_IF_ERROR(c->WithRank(c->input(2), 0, &unused)); // lr
86 TF_RETURN_IF_ERROR(
87 HandleKvGradAndIndicesInputs(c, sparse, 3 /* grad_idx */, &s));
88 if (c->num_outputs() > 0) {
89 c->set_output(0, s);
90 }
91 return Status::OK();
92}
93
94#define REGISTER_OP_BY_NAME(name) \
95REGISTER_OP(name) \

Callers

nothing calls this directly

Calls 7

ShapeOrHandleShapeFunction · 0.70
MergeMethod · 0.45
WithRankMethod · 0.45
inputMethod · 0.45
num_outputsMethod · 0.45
set_outputMethod · 0.45

Tested by

no test coverage detected