You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning:
..\torch\csrc\utils\python_arg_parser.cpp:756: UserWarning: This overload of addmm_ is deprecated:
addmm_(Number beta, Number alpha, Tensor mat1, Tensor mat2)
Consider using one of the following signatures instead:
addmm_(Tensor mat1, Tensor mat2, *, Number beta, Number alpha)
Packages:
torch 1.5.0
torchvision 0.6.0
Code:
distmat.addmm_(1, -2, x, self.centers.t())
Warning:
..\torch\csrc\utils\python_arg_parser.cpp:756: UserWarning: This overload of addmm_ is deprecated:
addmm_(Number beta, Number alpha, Tensor mat1, Tensor mat2)
Consider using one of the following signatures instead:
addmm_(Tensor mat1, Tensor mat2, *, Number beta, Number alpha)
Fix:
distmat.addmm_(x, self.centers.t(), beta=1, alpha=-2)
The text was updated successfully, but these errors were encountered: