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
Is your feature request related to a problem? Please describe.
The usage of Tensor.nonzero() (without arguments) has been deprecated, cf. pytorch/pytorch#40187
Is your feature request related to a problem? Please describe.
The usage of
Tensor.nonzero()
(without arguments) has been deprecated, cf. pytorch/pytorch#40187At least in
pykeen/src/pykeen/evaluation/evaluator.py
Line 360 in 630d872
we use the now deprecated version.
Describe the solution you'd like
Change all usages of
nonzero
to use to future-proof variant, i.e. in the above mentioned caseDescribe alternatives you've considered
Keep it as it is. This might lead to problems once PyTorch removes the deprecated behaviour.
Additional context
Warning found in this notebook: https://gist.github.com/cthoyt/190233fd98a11306ceb13f2ee0e95a9e (scroll all the way to the bottom)
The text was updated successfully, but these errors were encountered: