Sean X的博客就解决expectednp.ndarray (gotnumpy.ndarray)报错了。我的numpy版本是1.26.4,先卸载这个numpy,再安装1.26.0版本的numpy。先查看自己numpy的版本,conda list查看安装包及版本号。应该安装1.26.0版本的numpy。是...
ciki_tang的博客TypeError: can't convert np.ndarray of type numpy.complex128. The only supported types are: double, float, float16, int64, int32, and uint8. code: Test_data = torch.from_numpy(np.array(Test_data))...