Skip to content

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