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 enforce switch for convient develop #2850

Merged
merged 5 commits into from
Jul 17, 2017

Conversation

Superjomn
Copy link
Contributor

Add a switch into PADDLE_ENFORCE to switch between Exception and glog/CHECK.

If in DEBUG mode, when CHECK failed, it will print the whole stack, and much more convenient to debug.

@Superjomn Superjomn requested a review from reyoung July 13, 2017 13:06
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!

@Superjomn Superjomn merged commit cdec563 into PaddlePaddle:develop Jul 17, 2017
@Superjomn Superjomn deleted the add_enforce_switch branch July 17, 2017 05:11
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.

2 participants