From d4b031b31e11009d9f33c9c5ac3bd8056ec11073 Mon Sep 17 00:00:00 2001 From: VertexC Date: Mon, 13 Sep 2021 10:46:30 -0700 Subject: [PATCH] typo fix (#64615) 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aten/src/ATen/native/DistributionTemplates.h b/aten/src/ATen/native/DistributionTemplates.h index 1a071d1..ed5aa84 100644 --- a/aten/src/ATen/native/DistributionTemplates.h +++ b/aten/src/ATen/native/DistributionTemplates.h @@ -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 -- 2.7.4