Skip to content

Conversation

@lattner
Copy link
Contributor

@lattner lattner commented Jun 21, 2018

Tidy up debug printing and dumping a bit, moving from errs() to dbgs()
in a few places.

@lattner lattner added the tensorflow This is for "tensorflow" branch PRs. label Jun 21, 2018
@lattner lattner requested review from dan-zheng, mhong and rxwei June 21, 2018 17:03
@lattner
Copy link
Contributor Author

lattner commented Jun 21, 2018

@swift-ci please test tensorflow

Copy link
Contributor

@rxwei rxwei left a comment

Choose a reason for hiding this comment

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

Nice

Copy link

@mhong mhong left a comment

Choose a reason for hiding this comment

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

Nice!

What's the benefit of using dbgs() over errs()?

I understand the use of DEBUG(). For dbgs(), does it allow user to dump the output somewhere else (and if so, how?)

@lattner
Copy link
Contributor Author

lattner commented Jun 21, 2018

The only advantage is that it is more consistent with the rest of the codebase. DEBUG goes away in release builds too.

@lattner lattner merged commit b8b9a30 into swiftlang:tensorflow Jun 21, 2018
@lattner lattner deleted the dbgs-cleanup branch June 21, 2018 17:58
marcrasi pushed a commit that referenced this pull request Jun 22, 2018
#17398)

Tidy up debug printing and dumping a bit, moving from errs() to dbgs() in a few places.
marcrasi pushed a commit that referenced this pull request Jun 28, 2018
#17398)

Tidy up debug printing and dumping a bit, moving from errs() to dbgs() in a few places.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tensorflow This is for "tensorflow" branch PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants