| 217 | } |
| 218 | |
| 219 | Maybe<void> InferAdagradUpdateTensorDesc(user_op::InferContext* ctx) { |
| 220 | const user_op::TensorDesc& model = ctx->InputTensorDesc("model", 0); |
| 221 | const Shape& shape = model.shape(); |
| 222 | const user_op::TensorDesc& model_diff = ctx->InputTensorDesc("model_diff", 0); |
| 223 | CHECK_EQ_OR_RETURN(model_diff.shape(), shape); |
| 224 | const user_op::TensorDesc& sum = ctx->InputTensorDesc("sum", 0); |
| 225 | JUST(CheckShapeLike(&sum, &model)); |
| 226 | JUST(CheckLearningRateShape(ctx)); |
| 227 | return Maybe<void>::Ok(); |
| 228 | } |
| 229 | |
| 230 | Maybe<void> InferAdagradUpdateDataType(user_op::InferContext* ctx) { |
| 231 | const user_op::TensorDesc& model = ctx->InputTensorDesc("model", 0); |
no test coverage detected