-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Logging in Mxnet, with different level (verbose, warning, error) #11557
Comments
I think you can already get streams like |
Indeed. But when you use a compiled version of MXNet and you try to figure what is going wrong with it, you may want to toggle with several version of severity. There, for now, every time you want to use the C++, since you don't have lot of feedback, you either have the choice of compiling the whole MXNet library with no log and then wonder what went wrong, or try to log everything and potentially being invaded by a lot of feedback that is thrown directly in the CLI. A more interactive way to choose the level of information received would be a better solution. And if the checks where to embed some kind of logging, mainly when it fails, it would be better. And if all the logging where centralized and not disperse in the environment variable, I would even enjoy that more! |
Any updates?
from console output |
You could set MXNET_SUBGRAPH_VERBOSE to 0 and these message will be muted. However, I think we should change the code to make default to 0 (currently is 1). It'll be a good first issue for new mxnet developers. |
@apeforest Thank you for a quick reply! It worked for
Could you tell me the other environment variable? |
There is no variable to disable that. And it's logged using INFO level. |
requires dmlc/dmlc-core#623 |
Hi,
As pointed out in this forum thread, https://discuss.mxnet.io/t/how-to-enable-logginig-for-c-api/1273/5 and https://discuss.mxnet.io/t/debug-mxnet-network-in-c/1274, there is a strong need felt to be able to log information and failed checks in MXNet.
It is mainly useful when using the C++ API, because there are no other feedback than the one you get when there is an error and than you need to dive deep in the code to finally get what went wrong. (For example, that the expected input shape of the symbol is not consistent to the one that has been gotten).
Moreover, a consistent way to get the logging information would be great. Meaning, one that doesn't need to modify environment variables and so on, would be appreciated. It would then be possible to have several level of logging, according on what is common in most of the projects out there, including "verbose, debug, info, warning, error".
Also, depending on the level of information gathered, having all the log output in file would be appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: