dmlc / dmlc/MXNet.jl

Option to disable logging

Open
#216 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
369
Forks
63
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.