diff --git a/src/frontends/onnx/frontend/src/utils/random_normal.cpp b/src/frontends/onnx/frontend/src/utils/random_normal.cpp index 64c680442ea9a2..19f315ff430b08 100644 --- a/src/frontends/onnx/frontend/src/utils/random_normal.cpp +++ b/src/frontends/onnx/frontend/src/utils/random_normal.cpp @@ -55,7 +55,6 @@ OutputVector make_random_normal(const Output& shape, auto const product = std::make_shared(scale_const, std::make_shared(sqrt, cos)); auto const sum = std::make_shared(product, mean_const); - // if we don't disable downcasting then log(float32_min) gives -inf disable_fp16_compression(uniform_1); disable_fp16_compression(log); diff --git a/src/frontends/pytorch/src/op/rand.cpp b/src/frontends/pytorch/src/op/rand.cpp index 9c2df8e3b6df1a..4259ba5f6b2f03 100644 --- a/src/frontends/pytorch/src/op/rand.cpp +++ b/src/frontends/pytorch/src/op/rand.cpp @@ -65,7 +65,6 @@ OutputVector make_random_normal(const NodeContext& context, auto sqrt_x_cos = context.mark_node(std::make_shared(sqrt, cos)); auto product = context.mark_node(std::make_shared(scale_const, sqrt_x_cos)); auto sum = context.mark_node(std::make_shared(product, mean_const)); - // if we don't disable downcasting then log(float32_min) gives -inf disable_fp16_compression(uniform_1); disable_fp16_compression(log);