You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/07/17 00:50:16 UTC
[GitHub] milandesai opened a new issue #11775: NPE in BucketingModule when
providedLabel of DataBatch is not set
milandesai opened a new issue #11775: NPE in BucketingModule when providedLabel of DataBatch is not set
URL: https://github.com/apache/incubator-mxnet/issues/11775
We create a DataBatch without setting the `providedLabel` field. We then call `BucketingModule.forward(...)` with the data batch and get a NullPointerException:
```
java.lang.NullPointerException was thrown.
java.lang.NullPointerException
at ml.dmlc.mxnet.DataDesc$.ListMap2Descs(IO.scala:252)
at ml.dmlc.mxnet.module.BucketingModule.forward(BucketingModule.scala:313)
```
This happens because the implicit method `ListMap2Descs` tries to convert `ListMap[String, Shape]` into `IndexedSeq[DataDesc]` but fails because the former is null by default.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services