distaddmm_1 -2 inputs inputst 报错: UserWarning This overload of addmm_ is deprecated addmm_Number beta Number alpha Tensor mat1 Tensor mat2Consider using one of the following signatures instead addmm_
根据警告信息,您应该使用以下签名来调用addmm_函数:
dist.addmm_(inputs, inputs.t(), 1, -2)
首先传递mat1和mat2的张量参数,然后通过关键字参数传递beta和alpha的值。
原文地址: https://www.cveoy.top/t/topic/hArP 著作权归作者所有。请勿转载和采集!