-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Feature/param attr #5996
Feature/param attr #5996
Conversation
@@ -132,26 +132,26 @@ def test_word_embedding(self): | |||
input=first_word, | |||
size=[dict_size, embed_size], | |||
dtype='float32', | |||
param_attr={'name': 'shared_w'}, | |||
param_attr='shared_w', |
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.
感觉用 param_attr=fluid.ParamAttr(name='shared_w') 看起来更容易理解一些,这种自动转换不太好。
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.
没理解,自动转换是指?
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.
LGTM!
Fix #5819
The only commit of this PR is f096e71