Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cleanup][C-15]Replace Program.random_seed #61527

Merged
merged 2 commits into from
Feb 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update test/legacy_test/test_program.py
  • Loading branch information
SigureMo authored Feb 3, 2024
commit f080dd70695a8718c7fb06599c94d7d5389fc0a6
2 changes: 1 addition & 1 deletion test/legacy_test/test_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def test_prune_with_input_type_error(self):
def test_random_seed_error(self):
program = base.default_main_program()
with self.assertRaises(ValueError):
paddle.seed("seed")
program.random_seed = "seed"

def test_copy_info_from_error(self):
program = base.default_main_program()
Expand Down