-
Notifications
You must be signed in to change notification settings - Fork 43
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
Dropout层缺少mode参数,无法实现paddle的Dropout(mode="downscale_in_infer")功能 #31
Comments
paddle的Dropout(mode="downscale_in_infer")功能:
|
对比了一下 tensorflow、pytorch、mindspore在dropout上面的实现,都没有采用downscale_in_infer这种方式,建议测一下模型不变的情况下,把downscale_in_infer 修改成 upscale_in_train 是否对结果有影响。 |
测了,对推理结果没有影响,但对网络层的输出有影响,只是整体倍化。 |
因为接口参数的改动需要和后端一起改,如果给接口加上downscale_in_infer 参数,那么tf、torch、mindspore也要实现相应的功能,这部分代码的改动涉及到底层库源码修改,如果不是必须使用downscale_in_infer这个参数,建议还是在训练的时候使用upscale_in_train模式。 |
ok,了解,多谢解答 |
class Dropout(Module):
|
No description provided.
The text was updated successfully, but these errors were encountered: