Attribute Error: module ‘torch‘ has no attribute ‘gels‘

今天跟着书上的demo测试的时候,在求解最小二乘法的时候报错如下,经查阅资料该问题系pytorch版本问题,最新的计算最小二乘法的方法应为:torch.lstsq().相关截图如下所示:

猜你喜欢

转载自blog.csdn.net/lee_master/article/details/108863645