__array__() takes 1 positional argument but 2 were given
错误最终指向了
File "D:\SoftWare\Python3\lib\site-packages\torchvision\transforms\functional.py", line 129, in to_tensor ensor
np.array(pic, mode_to_nptype.get(pic.mode, np.uint8), copy=True)
TypeError: __array__() takes 1 positional argument but 2 were given
请问各位大佬,这是为啥。
以上是 __array__() takes 1 positional argument but 2 were given 的全部内容, 来源链接: utcz.com/p/938011.html