Skip to content

Commit

Permalink
【Hackathon 6th Fundable Projects 3 No.2】fluid operator adadelta (Padd…
Browse files Browse the repository at this point in the history
…lePaddle#64343)

* Fix

* ci
  • Loading branch information
co63oc committed May 19, 2024
1 parent c1021bf commit 6b03886
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 164 deletions.
40 changes: 0 additions & 40 deletions paddle/fluid/operators/ops_signature/adadelta_sig.cc

This file was deleted.

102 changes: 0 additions & 102 deletions paddle/fluid/operators/optimizers/adadelta_op.cc

This file was deleted.

11 changes: 0 additions & 11 deletions paddle/fluid/pir/dialect/operator/ir/ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@
# 2) The definitions of static graphs and dynamic graphs are inconsistent, but the final definition plan has not yet been clarified.
# After the definition is clearly defined, migrate to paddle/fluid/pir/dialect/operator/ir/update_ops.yaml or paddle/phi/api/yaml/ops.yaml

- op : adadelta_
args : (Tensor param, Tensor grad, Tensor avg_squared_grad, Tensor avg_squared_update, Tensor learning_rate, Tensor master_param, float rho, float epsilon, bool multi_precision)
output : Tensor(param_out), Tensor(moment_out), Tensor(inf_norm_out), Tensor(master_param_out)
infer_meta :
func : AdadeltaInferMeta
kernel :
func : adadelta
data_type : param
optional : master_param, master_param_out
inplace : (param -> param_out), (avg_squared_grad -> moment_out), (avg_squared_update -> inf_norm_out), (master_param -> master_param_out)

- op : add
args : (Tensor x, Tensor y)
output : Tensor(out)
Expand Down
11 changes: 0 additions & 11 deletions paddle/phi/api/yaml/legacy_ops.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
# The apis in this file are unstandardized that may caused by a variety of reasons,
# we are trying to fix these apis and will move standardized apis into ops.yaml.

- op : adadelta_
args : (Tensor param, Tensor grad, Tensor avg_squared_grad, Tensor avg_squared_update, Tensor learning_rate, Tensor master_param, float rho, float epsilon, bool multi_precision)
output : Tensor(param_out), Tensor(moment_out), Tensor(inf_norm_out), Tensor(master_param_out)
infer_meta :
func : AdadeltaInferMeta
kernel :
func : adadelta
data_type : param
optional : master_param, master_param_out
inplace : (param -> param_out), (avg_squared_grad -> moment_out), (avg_squared_update -> inf_norm_out), (master_param -> master_param_out)

- op : add
args : (Tensor x, Tensor y)
output : Tensor(out)
Expand Down
13 changes: 13 additions & 0 deletions paddle/phi/api/yaml/ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,19 @@
backward : acosh_grad
interfaces : paddle::dialect::InferSymbolicShapeInterface

- op : adadelta_
args : (Tensor param, Tensor grad, Tensor avg_squared_grad, Tensor avg_squared_update,
Tensor learning_rate, Tensor master_param, float rho = 0.95f, float epsilon =
1.0e-6f, bool multi_precision = false)
output : Tensor(param_out), Tensor(moment_out), Tensor(inf_norm_out), Tensor(master_param_out)
infer_meta :
func : AdadeltaInferMeta
kernel :
func : adadelta
data_type : param
optional : master_param, master_param_out
inplace : (param -> param_out), (avg_squared_grad -> moment_out), (avg_squared_update -> inf_norm_out), (master_param -> master_param_out)

- op : adagrad_
args : (Tensor param, Tensor grad, Tensor moment, Tensor learning_rate, Tensor master_param, float epsilon = 1.0e-6f, bool multi_precision = false)
output : Tensor(param_out), Tensor(moment_out), Tensor(master_param_out)
Expand Down

0 comments on commit 6b03886

Please sign in to comment.