Skip to content

Commit 2710b7d

Browse files
authored
[BugFix] Remove is_init_py of RandomGenerator (#2658)
1 parent c19372b commit 2710b7d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

paddlenlp/trainer/trainer_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,6 @@ def _load_rng_state(self, checkpoint):
877877
core = paddle.framework.core
878878
if core.is_compiled_with_cuda():
879879
for i in range(core.get_cuda_device_count()):
880-
core.default_cuda_generator(i)._is_init_py = True
881880
core.default_cuda_generator(i).manual_seed(
882881
checkpoint_rng_state["cuda"][i])
883882

0 commit comments

Comments
 (0)