apache / mxnet

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more
https://mxnet.apache.org
Apache License 2.0
20.78k stars 6.79k forks source link

Detailed traceback information on exception #4206

Closed sandeep-krishnamurthy closed 7 years ago

sandeep-krishnamurthy commented 7 years ago

We need to have more detailed traceback on errors and exceptions. For example in this questions on stackoverflow - http://stackoverflow.com/questions/41096590/mxnet-build-model-error-on-r

Error message is very abstract - Error in mx.io.internal.arrayiter(as.array(data), as.array(label), unif.rnds, : basic_string::_M_replace_aux

It is difficult for users to understand that the issues is related to mismatch in index value when creating a matrix or any shape of a data structure.

Example of similar issue and fix in Tensorflow package - https://github.com/rstudio/tensorflow/pull/42

piiswrong commented 7 years ago

Yeah. If you look for issues with "Unclear Error/Doc" you can find some examples. Let's do this after (or while) we add examples to API docs.

yajiedesign commented 7 years ago

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!