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

请问文本二分类的那个模型固定seed了吗? #529

Closed
wxl1351641822 opened this issue Apr 19, 2020 · 4 comments
Closed

请问文本二分类的那个模型固定seed了吗? #529

wxl1351641822 opened this issue Apr 19, 2020 · 4 comments
Assignees

Comments

@wxl1351641822
Copy link

我看他代码里写的seed=0?这是固定了吗??请问paddle有全局固定seed的那种工具吗?

@Steffy-zxf
Copy link
Contributor

Steffy-zxf commented Apr 20, 2020

你好!你指的"文本二分类的那个模型"是哪个模型,方便给下链接吗?可以设置program的seed,方法如下:

# program是paddle的Program类对象
# SEED是你想要设置的随机种子数
program.random_seed = SEED

@Steffy-zxf
Copy link
Contributor

你可以参考我上述回复的方式,固定program的随机种子。

@wxl1351641822
Copy link
Author

好的,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants