Skip to content

don't add unregisterd attr, test=develop #23047

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

Merged
merged 2 commits into from
Mar 18, 2020

Conversation

zhiqiu
Copy link
Contributor

@zhiqiu zhiqiu commented Mar 17, 2020

This PR fix #23028.
The problem is, use_mkldnn is not a registered attribute in hard_sigmoid, and it will not be checked by TypedAttrChecker. So, when it is used in ActivationGradOpMaker, error RuntimeError: boost::bad_get: failed value get using boost::get is raised.
We should not add use_mkldnn to attrs if they are not given.

@zhiqiu zhiqiu merged commit 5257530 into PaddlePaddle:develop Mar 18, 2020
zhiqiu added a commit to zhiqiu/Paddle that referenced this pull request Apr 2, 2020
* don't add unregisterd attr, test=develop

* add some unittests,test=develop
sneaxiy pushed a commit that referenced this pull request Apr 4, 2020
* don't add unregisterd attr, test=develop

* add some unittests,test=develop
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

Successfully merging this pull request may close these issues.

PaddlePaddle1.7.0, act='hard_sigmoid' is not available in paddle.fluid.dygraph.Conv2D()
2 participants