4 ms·
Pytorch does something similar, except with an underscore at the end of the name. As the arguments are tensors, it's a really handy convention and the API commu
by dpwm 8y ago
Pytorch does something similar, except with an underscore at the end of the name. As the arguments are tensors, it's a really handy convention and the API communicates whether a method or function modifies an argument.
I don't believe this was always the case, so it's probably caused a lot of deprecation warnings for some people.