Ah, interesting! It looks like a recent change. You linked to the docs for the master branch, but the same docs for v0.3.1 show the two different return types. I guess you’re using an older version of PyTorch, but looking at the latest docs.
Ah, interesting! It looks like a recent change. You linked to the docs for the master branch, but the same docs for v0.3.1 show the two different return types. I guess you’re using an older version of PyTorch, but looking at the latest docs.