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

Provide some way to specify verbosity for loading extra MXNet libraries #703

Closed
samskalicky opened this issue Feb 26, 2021 · 0 comments · Fixed by #728
Closed

Provide some way to specify verbosity for loading extra MXNet libraries #703

samskalicky opened this issue Feb 26, 2021 · 0 comments · Fixed by #728
Labels
enhancement New feature or request

Comments

@samskalicky
Copy link

Description

Currently the default value for verbose is 1 causing lots of print statements at runtime like:

[22:29:28] src/c_api/c_api.cc:354: Found 1 operators in library
[22:29:28] src/c_api/c_api.cc:419:      Op[0] _eia_subgraph_op
[22:29:28] src/c_api/c_api.cc:420:              isSubgraphOp
[22:29:28] src/c_api/c_api.cc:988: Found 1 partitioners in library
[22:29:28] src/c_api/c_api.cc:1004:     Partitioner[0] EIA
[22:29:28] src/c_api/c_api.cc:1026:             Strategy[0] strategy1 subgraphOp: '_eia_subgraph_op'
[22:29:28] src/c_api/c_api.cc:1049: Found 0 graph passes in library

Here is where the value is hard-coded to 1:
https:/awslabs/djl/blob/83c68a10d15574f5b686d9656f5febc082f1e6f0/mxnet/mxnet-engine/src/main/java/ai/djl/mxnet/engine/MxEngine.java#L65

I proposed either we use another env var like MXNET_EXTRA_LIBRARY_VERBOSE or something and set the default value to 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant