Skip to content

Commit d6d5a07

Browse files
committed
Fix CI errors
1 parent 8863294 commit d6d5a07

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

python/paddle/tensor/math.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,6 @@ def get_dtype(x, dtype):
912912

913913
out_dtype = convert_np_dtype_to_dtype_(dtype)
914914
out = _C_ops.final_state_sum(x, axis, out_dtype, keepdim)
915-
print(f"in python api, result = {out}")
916915
return out
917916

918917
if _in_legacy_dygraph():

python/paddle/utils/code_gen/api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@
13671367
# no_need_buffer : x, y
13681368

13691369
- api : sum
1370-
args : (Tensor x, int64_t[] dims={0}, DataType out_dtype=paddle::experimental::DataType::UNDEFINED, bool keep_dim=false)
1370+
args : (Tensor x, int64_t[] dims={}, DataType out_dtype=paddle::experimental::DataType::UNDEFINED, bool keep_dim=false)
13711371
output : Tensor(out)
13721372
infer_meta :
13731373
func : SumInferMeta

python/paddle/utils/code_gen/backward.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@
950950
func : subtract_grad
951951

952952
- backward_api : sum_grad
953-
forward : sum (Tensor x, int64_t[] dims={0}, DataType out_dtype=paddle::experimental::DataType::UNDEFINED, bool keep_dim=false) -> Tensor(out)
953+
forward : sum (Tensor x, int64_t[] dims={}, DataType out_dtype=paddle::experimental::DataType::UNDEFINED, bool keep_dim=false) -> Tensor(out)
954954
args : (Tensor x, Tensor out_grad, int64_t[] dims, bool keep_dim, bool reduce_all=false)
955955
output : Tensor(x_grad)
956956
infer_meta :

0 commit comments

Comments
 (0)