From 8350a31d4c755bb40a535b24271137652e51ca35 Mon Sep 17 00:00:00 2001 From: Peilin Wang Date: Tue, 23 Mar 2021 17:02:20 -0400 Subject: [PATCH] add float64 support to cumsum --- mindspore/ops/operations/math_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ops/operations/math_ops.py b/mindspore/ops/operations/math_ops.py index e74ce7f14e..c1cfddce0e 100644 --- a/mindspore/ops/operations/math_ops.py +++ b/mindspore/ops/operations/math_ops.py @@ -992,7 +992,7 @@ class CumSum(PrimitiveWithInfer): if axis['value'] is None: raise ValueError(f"For {self.name}, axis must be const.") validator.check_value_type('axis', axis['value'], [int], cls_name) - valid_dtypes = [mstype.uint8, mstype.int8, mstype.int32, mstype.float16, mstype.float32] + valid_dtypes = [mstype.uint8, mstype.int8, mstype.int32, mstype.float16, mstype.float32, mstype.float64] validator.check_tensor_dtype_valid('x', x['dtype'], valid_dtypes, cls_name) return {'shape': x_shp, 'dtype': x['dtype'],