Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix test_decayed_adagrad_op #59486

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions paddle/fluid/pir/dialect/op_generator/ops_api_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
'c_identity',
'c_reduce_sum',
'c_reducescatter',
'decayed_adagrad',
'dpsgd',
'embedding_grad_sparse',
'fused_batch_norm_act_',
Expand Down
9 changes: 9 additions & 0 deletions paddle/fluid/pir/dialect/operator/ir/ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,15 @@
output : Tensor(out)
invoke : copy_to_impl(x, place, blocking)

- op : decayed_adagrad
args : (Tensor param, Tensor grad, Tensor moment, Tensor learning_rate, float decay = 0.95f, float epsilon = 1.0e-6f)
output : Tensor(param_out), Tensor(moment_out)
infer_meta :
func : DecayedAdagradInferMeta
kernel :
func : decayed_adagrad
data_type : param

- op : decode_jpeg
args : (Tensor x, str mode, Place place)
output : Tensor(out)
Expand Down
6 changes: 6 additions & 0 deletions paddle/phi/api/yaml/op_compat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3345,6 +3345,12 @@
outputs:
{out: Out}

- op: decayed_adagrad
inputs:
{param : Param, grad : Grad, moment : Moment, learning_rate : LearningRate}
outputs:
{param_out : ParamOut, moment_out : MomentOut}

- op: dpsgd
inputs:
{param: Param,grad: Grad,learning_rate: LearningRate}
Expand Down
1 change: 1 addition & 0 deletions test/white_list/pir_op_test_white_list
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ test_cummax_op
test_cummin_op
test_cumprod_op
test_cumsum_op
test_decayed_adagrad_op
test_deformable_conv_op
test_dequantize_mkldnn_op
test_determinant_op
Expand Down