-
Notifications
You must be signed in to change notification settings - Fork 179
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
【PPSCI Doc No.24】ppsci.arch.Generator #802
Conversation
Thanks for your contribution! |
Turingggg seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
❌ The PR is not created using PR's template. You can refer to this Demo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感谢大佬提交PR,辛苦修改一下
ppsci/arch/gan.py
Outdated
>>> import warnings | ||
>>> warnings.filterwarnings("ignore", message="When training, we now always track global mean and variance.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的两行应该可以去掉,这类警告应该不会算在doctest的对比内容里
ppsci/arch/gan.py
Outdated
>>> width = 64 | ||
>>> input_data = paddle.randn([batch_size, in_channel, height, width]) | ||
>>> input_dict = {'in': input_data} | ||
>>> output_data = model(input_dict) # 不需要计算梯度,因为这只是前向传播 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"不需要计算梯度,因为这只是前向传播"这句话可以删除
PR types
Others
PR changes
Docs
Describe
完善 Generator的示例
任务链接:#686
对此模型的具体应用还不熟悉QVQ,阔以看看能这样写嘛
@HydrogenSulfate