Closed leonwanghui closed 3 years ago
Hello, I suggest you upgrade python to version 3.7.5 and try again.
Hi, actually mindspore.numpy.array and mindspore.numpy.asarray cannot accept original numpy array as input, please see the description here: https://www.mindspore.cn/doc/api_python/zh-CN/r1.2/mindspore/numpy/mindspore.numpy.array.html?highlight=array#mindspore.numpy.array
@yanglf1121 Got it, thanks for the elaboration!
Environment
Hardware Environment(
Ascend
/GPU
/CPU
):/device cpu
Software Environment:
v1.2.0
Python 3.7.4
Windows 10
Describe the current behavior
When I want to convert a numpy ndarray to
Tensor
using themindspore.numpy
module, some errors occurred:Same errors occurred when I use
numpy.array(input)
method.Describe the expected behavior
Fix the errors.
Steps to reproduce the issue
Related log / screenshot
Special notes for this issue