typo fix (#64615)
authorVertexC <bob2420083992@gmail.com>
Mon, 13 Sep 2021 17:46:30 +0000 (10:46 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 13 Sep 2021 17:50:01 +0000 (10:50 -0700)
Summary:
Fixes #{issue number}

Pull Request resolved: https://github.com/pytorch/pytorch/pull/64615

Reviewed By: jbschlosser

Differential Revision: D30884298

Pulled By: ngimel

fbshipit-source-id: 230f9d06aa85abcdd69828a1ea0a83f36cbfcb17

aten/src/ATen/native/DistributionTemplates.h

index 1a071d1..ed5aa84 100644 (file)
@@ -24,7 +24,7 @@ namespace templates {
 //
 // If random's uint64_t arithmetics produces 65503 as a random value after casting to torch::half it becomes 65504
 // and violates the requirement that random value must be less than `to`. To resolve this issue `update_from` and `update_to`
-// moves `from` to the left and `to` to the right to the next closest value that won't go outside [from, to) after casting to
+// moves `from` to the right and `to` to the left to the next closest value that won't go outside [from, to) after casting to
 // the target dtype. For `to` = 65504 it moves left for (1 << (log2(to) - 11 + 1)) = 32 and becomes 65472, which is previous
 // available number for torch::half dtype.
 template<typename scalar_t>