解决报错问题:RuntimeError: Could not infer dtype of numpy.float32
原因:pytoch不支持大于2.0版本的numpy
解决方法:pip install numpy<2.0

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐