mindspore-ai / mindspore

MindSpore is a new open source deep learning training/inference framework that could be used for mobile, edge and cloud scenarios.
https://gitee.com/mindspore/mindspore
Apache License 2.0
4.16k stars 686 forks source link

The dtype of return in mindspore.ops.cummax() and mindspore.ops.cummin() are different. #221

Open Leeinsn opened 1 year ago

Leeinsn commented 1 year ago

Environment

Hardware Environment(Ascend/GPU/CPU):

Uncomment only one /device <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/device ascend
/device gpu
/device cpu

Software Environment:

Describe the current behavior

When I use the function mindspore.ops.cummax(), the return dtype is Int64 as pytorch. But when I use mindspore.ops.cummin(), the return dtype is Int32. The two different dtype will bring some error when develop.

Describe the expected behavior

These two return values are both Int64.

Steps to reproduce the issue

Related log / screenshot

Special notes for this issue

cxl-ll commented 1 year ago

Hello, the question has been received. We will analyze and reply as soon as possible. Please wait patiently.

Leeinsn commented 1 year ago

Thankfully!