Exception type thrown [python]

I’m writing a python application that requires loading the model via load_checkpoint. In the documentation it does not clarify what the exception is thrown if any of the parameters passed cause an error.

Looking into the source code I saw the two cases of load for Symbol and Ndarray raise a ValueError, however in my testing I see that when these parameters are incorrect it throws an MxNetError.

I wanted to confirm whether this type of error is thrown in all cases or just in the load_checkpoint,

Thanks for any help :slight_smile:

MXNetError is raised when the underlying MXNet engine returns an error. That’s not specific to load_checkpoint. Pretty much all calls to the libmxnet.so library pass through check_call() function, which in turn raises MXNetError when the call fails.