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

CNTK directs console output to stderr #25

Closed
alexeyo26 opened this issue Jan 26, 2016 · 4 comments
Closed

CNTK directs console output to stderr #25

alexeyo26 opened this issue Jan 26, 2016 · 4 comments

Comments

@alexeyo26
Copy link
Member

Currently CNTK directs all console output to stderr rather than stdout. Was it for a reason?

@stolcke
Copy link

stolcke commented Jan 27, 2016

I think only “payload” output (such as rec output) should go to stdout. All other errors, warnings and informational messages should go to stderr.

Andreas

From: Alexey Orlov [mailto:notifications@github.com]
Sent: Tuesday, January 26, 2016 4:18 AM
To: Microsoft/CNTK CNTK@noreply.github.com
Subject: [CNTK] CNTK directs console output to stderr (#25)

Currently CNTK directs all console output to stderr rather than stdout. Was it for a reason?


Reply to this email directly or view it on GitHubhttps://github.com//issues/25.

@alexeyo26
Copy link
Member Author

Andreas, you said and informational messages. (to stderr). I believe this is exactly what we have now. Moreover, if I invoke, e.g., Simple2d example, nothing goes to stdout. If that's the way we believe it should be, fine. Just wanted to clarify.

@frankseide
Copy link
Contributor

Any actual output data should go to stdout, while messages, informational or errors, should be on stderr. I don’t think we have any data output at present. But I can imagine writing to stdout instead of a file e.g. for integrating with pipe-based tools like Kaldi. Since that may be binary data, we should keep stdout pristine.

From: Alexey Orlov [mailto:notifications@github.com]
Sent: Wednesday, January 27, 2016 12:52
To: Microsoft/CNTK CNTK@noreply.github.com
Subject: Re: [CNTK] CNTK directs console output to stderr (#25)

Andreas, you said and informational messages. (to stderr). I believe this is exactly what we have now. Moreover, if I invoke, e.g., Simple2d example, nothing goes to stdout. If that's the way we believe it should be, fine. Just wanted to clarify.


Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-175847549.

@alexeyo26
Copy link
Member Author

To the best of our knowledge CNTK adheres to the UNIX model:

  • data to stdout
  • messages to stderr

Issue closed

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

No branches or pull requests

3 participants