Skip to content

Commit

Permalink
[BugFix] Remove is_init_py of RandomGenerator (#2658)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHUI authored Jun 28, 2022
1 parent c19372b commit 2710b7d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion paddlenlp/trainer/trainer_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,6 @@ def _load_rng_state(self, checkpoint):
core = paddle.framework.core
if core.is_compiled_with_cuda():
for i in range(core.get_cuda_device_count()):
core.default_cuda_generator(i)._is_init_py = True
core.default_cuda_generator(i).manual_seed(
checkpoint_rng_state["cuda"][i])

Expand Down

0 comments on commit 2710b7d

Please sign in to comment.