I caught the exception and printed e.what()
NLL Example
Log softmax succeeded
Ground truth created
Exception occured
Expected object of scalar type Long but got scalar type Float for argument #2 'target' (checked_tensor_unwrap at C:\w\1\s\windows\pytorch\aten\src\ATen/Utils.h:80)
(no backtrace available)