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

Add recommender system demo fault tolerant mode #284

Merged
merged 2 commits into from
Aug 9, 2017

Conversation

helinwang
Copy link
Collaborator

Depends on the framework change in #278

@helinwang helinwang changed the title add recommend system demo Add recommend system demo Aug 9, 2017
@helinwang helinwang changed the title Add recommend system demo Add recommender system demo Aug 9, 2017
@helinwang helinwang changed the title Add recommender system demo Add recommender system demo fault tolerant mode Aug 9, 2017


def main():
paddle.init(use_gpu=False)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we do not speficy use_gpu, cloud job will set this parameter according to paddlecloud submit -gpu

Copy link
Collaborator Author

@helinwang helinwang Aug 9, 2017

Choose a reason for hiding this comment

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

Thanks! Curious how we set it? From here I have not see the code set the gpu flag: https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/v2/__init__.py#L68

Copy link
Collaborator

Choose a reason for hiding this comment

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

All the environment variable startswith PADDLE_INIT will be converted to the parameterse of paddle.init, as https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/v2/__init__.py#L71. And cloud servert will set this environment variable when -gpu greater 0, as https://github.com/PaddlePaddle/cloud/blob/develop/paddlecloud/paddlejob/paddle_job.py#L96

Copy link
Collaborator

@Yancey1989 Yancey1989 left a comment

Choose a reason for hiding this comment

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

LGTM

@helinwang helinwang merged commit 601b0b6 into PaddlePaddle:develop Aug 9, 2017
@helinwang helinwang deleted the recommend branch August 9, 2017 21:34
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