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

enable self-defined index data in testLayerGrad. #3449

Merged
merged 2 commits into from
Aug 14, 2017

Conversation

lcy-seso
Copy link
Contributor

enable defining Argument.ids in testLayerGrad.

@@ -97,6 +98,23 @@ struct InputDef {

InputDef(InputType type,
string nameIn,
std::vector<int> ids,
std::vector<int> selfDefinedSeqStartPos = {},
std::vector<int> selfDefinedSubSeqStartPos = {})
Copy link
Contributor

Choose a reason for hiding this comment

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

std::vector -> const std::vector&

另外,InputDef的构造函数被加的太多了,以后set/get函数好一些~

Copy link
Contributor Author

@lcy-seso lcy-seso Aug 14, 2017

Choose a reason for hiding this comment

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

对,现在构造函数确实非常多。
done

@qingqing01 qingqing01 merged commit 8747d60 into PaddlePaddle:develop Aug 14, 2017
@lcy-seso lcy-seso deleted the enable_self_defined_ids branch August 14, 2017 07:16
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