首页> 开发问题 >其它问题 其它问题

module 'torch' has no attribute 'gesv'

作者:小萝卜 2019-12-03 浏览 1887

简介module 'torch' has no attribute 'gesv'

新版torch不支持gesv,使用solve函数。

Kt, _ = torch.gesv(P.mm(H.t()).t(), S)
改成
Kt, _ = torch.solve(P.mm(H.t()).t(), S)

很赞哦! (0)

文章评论

    高端网站建设