Skip to content

Conversation

@lcy-seso
Copy link
Contributor

add param_attr to the nce_layer and enable multiple inputs.

@lcy-seso lcy-seso requested a review from qingqing01 May 15, 2017 03:39
@qingqing01
Copy link
Contributor

Please add unit test in python/paddle/trainer_config_helpers/tests/configs :)

input = [input]
assert not isinstance(param_attr, collections.Sequence)
param_attr = [param_attr]
else:
Copy link
Contributor

Choose a reason for hiding this comment

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

please add simple usage in annotation when input is not LayerOutput, i.e, add simple usage for else branch.

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.

@lcy-seso lcy-seso force-pushed the add_param_attr_to_nce branch from b001077 to c27a4ca Compare May 15, 2017 05:23
@lcy-seso lcy-seso force-pushed the add_param_attr_to_nce branch from c27a4ca to 7556cef Compare May 15, 2017 05:32
Copy link
Contributor Author

@lcy-seso lcy-seso left a comment

Choose a reason for hiding this comment

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

follow comments.

input = [input]
assert not isinstance(param_attr, collections.Sequence)
param_attr = [param_attr]
else:
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.

@lcy-seso lcy-seso merged commit 0b0d3d0 into PaddlePaddle:develop May 15, 2017
@lcy-seso lcy-seso deleted the add_param_attr_to_nce branch May 25, 2017 02:54
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.

3 participants