Skip to content

Commit

Permalink
add default value in yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
DesmonDay committed Aug 2, 2022
1 parent ad1692c commit f8fac9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion paddle/phi/api/yaml/legacy_api.yaml
Expand Up @@ -886,7 +886,7 @@
backward : gelu_grad

- api : graph_send_recv
args : (Tensor x, Tensor src_index, Tensor dst_index, str pool_type, IntArray out_size)
args : (Tensor x, Tensor src_index, Tensor dst_index, str pool_type = "SUM", IntArray out_size = {0})
output : Tensor(out), Tensor(dst_count)
infer_meta :
func : GraphSendRecvInferMeta
Expand Down
4 changes: 2 additions & 2 deletions paddle/phi/api/yaml/legacy_backward.yaml
Expand Up @@ -828,8 +828,8 @@
func : gelu_grad

- backward_api : graph_send_recv_grad
forward : graph_send_recv (Tensor x, Tensor src_index, Tensor dst_index, str pool_type, IntArray out_size) -> Tensor(out), Tensor(dst_count)
args : (Tensor x, Tensor src_index, Tensor dst_index, Tensor out, Tensor dst_count, Tensor out_grad, str pool_type)
forward : graph_send_recv (Tensor x, Tensor src_index, Tensor dst_index, str pool_type = "SUM", IntArray out_size = {0}) -> Tensor(out), Tensor(dst_count)
args : (Tensor x, Tensor src_index, Tensor dst_index, Tensor out, Tensor dst_count, Tensor out_grad, str pool_type = "SUM")
output : Tensor(x_grad)
infer_meta :
func : GeneralUnaryGradInferMeta
Expand Down

0 comments on commit f8fac9a

Please sign in to comment.