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

Ensure name is not set in bias_attr in gru_step_naive_layer #4827

Merged
merged 2 commits into from
Oct 16, 2017

Conversation

pengli09
Copy link
Contributor

@pengli09 pengli09 commented Oct 16, 2017

Ensure name is not set in bias_attr in gru_step_naive_layer. Otherwise, the three biases will share the same parameter unexpectedly.
Fixes #4829

@pengli09 pengli09 requested a review from luotao1 October 16, 2017 06:57
@luotao1
Copy link
Contributor

luotao1 commented Oct 16, 2017

the three biases will share the same parameter unexpectedly

请问是哪三个bias呢?能不能提一个issue来详细描述下这个问题呢?

@@ -3679,6 +3679,11 @@ def gru_step_naive_layer(input,
if size is None:
size = input.size / 3

if bias_attr and bias_attr.attr.get("parameter_name", None) is not None:
raise ValueError("You should not specify the name of bias parameters. "
"Otherwise, the three bias will share the same "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

three bias可以具体说一下是哪三个

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@luotao1 luotao1 merged commit aeccaf5 into PaddlePaddle:develop Oct 16, 2017
@pengli09 pengli09 deleted the ensure-bias-attr-has-no-name branch October 24, 2017 10:53
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.

None yet

2 participants