Using sqrt for better precision in cosine_similarity (#18250)
authorAiling Zhang <ailzhang@fb.com>
Fri, 22 Mar 2019 20:22:52 +0000 (13:22 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 22 Mar 2019 20:33:30 +0000 (13:33 -0700)
commitfe5d23cf4a9d8f673fb1bfc6e84c642fb6a23182
tree6db160af817f48b00b26d643fa0dd19631ad8fce
parent18a6781f5758aed7f910a49e62f65f20f18c8f81
Using sqrt for better precision in cosine_similarity (#18250)

Summary:
address comment in #18168 .
Testing in CI...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18250

Differential Revision: D14568601

Pulled By: ailzhang

fbshipit-source-id: 39fbbdb08743b53fa665c7e88e4750cbe0976ec7
aten/src/ATen/native/Distance.cpp
test/test_nn.py