Skip to content

Commit

Permalink
[PT FE] Fix issue with inf produced by normal distribution (openvinot…
Browse files Browse the repository at this point in the history
  • Loading branch information
mvafin authored Dec 1, 2023
1 parent c1cfb00 commit 7ff5174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontends/pytorch/src/op/rand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ OutputVector make_random_normal(const NodeContext& context,
const uint64_t seed_1 = distrib(gen);
const uint64_t seed_2 = distrib(gen);

auto min_val = context.mark_node(v0::Constant::create(target_type, Shape{1}, {0}));
auto min_val = context.mark_node(v0::Constant::create(target_type, Shape{1}, {std::numeric_limits<float>::min()}));
auto max_val = context.mark_node(v0::Constant::create(target_type, Shape{1}, {1}));

auto uniform_1 = context.mark_node(
Expand Down

0 comments on commit 7ff5174

Please sign in to comment.