The cumulative max of the elements along a given axis.
Note:
The first element of the result is the same as the first element of the input.
Args:
x (Tensor): The input tensor needed to be cummaxed.
axis (int, optional): The dimension to accumulate along. -1 means the last dimension. The default (None) is to compute the cummax over the flattened array.
dtype (str, optional): The data type of the indices tensor, can be int32, int64. The default value is int64.
name (str, optional): Name for the operation (optional, default is None). For more information, please refer to :ref:`api_guide_Name`.
Returns:
out (Tensor), The result of cummax operation. The dtype of cummax result is same with input x.
indices (Tensor), The corresponding index results of cummax operation.
The cumulative min of the elements along a given axis.
Note:
The first element of the result is the same as the first element of the input.
Args:
x (Tensor): The input tensor needed to be cummined.
axis (int, optional): The dimension to accumulate along. -1 means the last dimension. The default (None) is to compute the cummin over the flattened array.
dtype (str, optional): The data type of the indices tensor, can be int32, int64. The default value is int64.
name (str, optional): Name for the operation (optional, default is None). For more information, please refer to :ref:`api_guide_Name`.
Returns:
out (Tensor), The result of cummin operation. The dtype of cummin result is same with input x.
indices (Tensor), The corresponding index results of cummin operation.