"tests/vscode:/vscode.git/clone" did not exist on "e00dfd955ee2c822ce43ed5b3fcae1c8b3db48ce"
Explicitely store a distance value that is reused (#4341)
* Explicitely store a distance value that is reused I don't see a reason to calculate the value twice for each distance. Knowing that this code is going to be called at every epoch and that probably there is not a compiler that optimizes this (+ also code clarity), I think is best to store the value for x and y. * Update torchvision/models/detection/_utils.py Co-authored-by:Nicolas Hug <contact@nicolas-hug.com> * removing spaces Co-authored-by:
Nicolas Hug <contact@nicolas-hug.com> Co-authored-by:
Vasilis Vryniotis <datumbox@users.noreply.github.com>
Showing
Please register or sign in to comment