numpy发生的错误

遇到问题

TypeError: numpy boolean subtract, the - operator, is not supported, use the bitwise_xor, the ^ operator, or the logical_xor function instead.

img

遇到的这个出错,按照路径将transforms.py的第2786行 - 改成 ^ 还是错,甚至连神经网络都无法运行,
numpy降级也不行

求解答

你写的不是减号-吧,你看一下中英文输入的减号

解决了吗,我也遇到了同样的问题