cummax函数名修正

This commit is contained in:
yangxixin 2022-11-11 11:02:22 +08:00
parent 98e7d511c3
commit 91a38196c9
5 changed files with 13 additions and 13 deletions

View File

@ -403,7 +403,7 @@ Array操作
mindspore.ops.Cast
mindspore.ops.Concat
mindspore.ops.ConjugateTranspose
mindspore.ops.CumMax
mindspore.ops.Cummax
mindspore.ops.CumProd
mindspore.ops.CumSum
mindspore.ops.DataFormatDimMap

View File

@ -1,8 +0,0 @@
mindspore.ops.CumMax
=====================
.. py:class:: mindspore.ops.CumMax(axis)
返回输入Tensor在指定轴上的累计最大值与其对应的索引。
更多参考详见 :func:`mindspore.ops.cummax`

View File

@ -0,0 +1,8 @@
mindspore.ops.Cummax
=====================
.. py:class:: mindspore.ops.Cummax(axis)
返回输入Tensor在指定轴上的累计最大值与其对应的索引。
更多参考详见 :func:`mindspore.ops.cummax`

View File

@ -403,7 +403,7 @@ Array Operation
mindspore.ops.Cast
mindspore.ops.Concat
mindspore.ops.ConjugateTranspose
mindspore.ops.CumMax
mindspore.ops.Cummax
mindspore.ops.CumProd
mindspore.ops.CumSum
mindspore.ops.DataFormatDimMap

View File

@ -6996,7 +6996,7 @@ class UpperBound(Primitive):
self.init_prim_io_names(inputs=['sorted_x', 'values'], outputs=['y'])
class CumMax(Primitive):
class Cummax(Primitive):
"""
Returns the cumulative maximum of elements and the index.
@ -7010,7 +7010,7 @@ class CumMax(Primitive):
>>> import numpy as np
>>> from mindspore import Tensor
>>> import mindspore.ops as ops
>>> cummax = ops.CumMax(axis=0)
>>> cummax = ops.Cummax(axis=0)
>>> x = Tensor(np.array([[3, 4, 6, 10], [1, 6, 7, 9], [4, 3, 8, 7], [1, 3, 7, 9]]).astype(np.float32))
>>> output = cummax(x)
>>> print(output[0])
@ -7027,7 +7027,7 @@ class CumMax(Primitive):
@prim_attr_register
def __init__(self, axis):
"""Initialize CumMax"""
"""Initialize Cummax"""
validator.check_value_type("axis", axis, [int], self.name)
self.init_prim_io_names(inputs=['x'], outputs=['y', 'indices'])
self.add_prim_attr("dim", axis)