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

Option to disable logging #216

Open
MikeInnes opened this issue Mar 14, 2017 · 1 comment
Open

Option to disable logging #216

MikeInnes opened this issue Mar 14, 2017 · 1 comment

Comments

@MikeInnes
Copy link
Contributor

When there's an error compiling a network via bind or whatever, I get a scary-looking log in the console, as well as an error message thrown with the same text:

[16:53:59] /Users/mike/.julia.1/v0.5/MXNet/deps/src/mxnet/dmlc-core/include/dmlc/./logging.h:300: [16:53:59] src/operator/tensor/./matrix_op-inl.h:460: Check failed: lshape[1] == rshape[0] (20 vs. 21) dot shape error: (1,20) X (21,15)

Stack trace returned 53 entries:
[bt] (0) 0   libmxnet.so                         0x00000003178ae508 _ZN4dmlc15LogMessageFatalD2Ev + 40
[bt] (1) 1   libmxnet.so                         0x0000000317e0f04a _ZN5mxnet2op8DotShapeERKN4nnvm9NodeAttrsEPNSt3__16vectorINS1_6TShapeENS5_9allocatorIS7_EEEESB_ + 5050
[many more lines]

Obviously the log is redundant here, but it's also likely to make users think that something has gone wrong internally, so it'd be great to turn it off for non-developers. Aside from that I also need to remove the stack traces from error messages (I believe that changed recently); I can fairly easily strip them out by catching and processing the MXError object, but a more robust solution would be good.

@vchuravy
Copy link
Collaborator

That is a problem that would need to be addressed in mxnet proper. Logging is implemented in mshadow/mshadow/logging.h

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

2 participants