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

use EigenVector to get learning_rate for GPU device in SGD operator #4598

Merged
merged 3 commits into from
Oct 5, 2017

Conversation

jacquesqiao
Copy link
Member

@jacquesqiao jacquesqiao commented Oct 4, 2017

fix: #4601

abhinavarora
abhinavarora previously approved these changes Oct 4, 2017
Copy link
Contributor

@abhinavarora abhinavarora left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -23,6 +23,9 @@ using Tensor = framework::Tensor;
template <typename T, int MajorType = Eigen::RowMajor,
typename IndexType = Eigen::DenseIndex>
using EigenVector = framework::EigenVector<T, MajorType, IndexType>;
template <typename T, int MajorType = Eigen::RowMajor,
typename IndexType = Eigen::DenseIndex>
using EigenScalar = framework::EigenScalar<T, MajorType, IndexType>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually, we should not add type alias in headers.

Copy link
Member Author

Choose a reason for hiding this comment

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

removed

@jacquesqiao jacquesqiao changed the title use EigenScalar to get learning_rate from GPU device use EigenVector to get learning_rate for GPU device in SGD operator Oct 5, 2017
reyoung
reyoung previously approved these changes Oct 5, 2017
Copy link
Collaborator

@reyoung reyoung left a comment

Choose a reason for hiding this comment

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

LGTM

wangkuiyi
wangkuiyi previously approved these changes Oct 5, 2017
@jacquesqiao jacquesqiao dismissed stale reviews from wangkuiyi and reyoung via 8ebc31d October 5, 2017 00:14
@jacquesqiao jacquesqiao merged commit c0511c8 into PaddlePaddle:develop Oct 5, 2017
@sidgoyal78 sidgoyal78 mentioned this pull request Oct 5, 2017
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.

Fix sgd learing_rate problem
4 participants