-
Notifications
You must be signed in to change notification settings - Fork 6.8k
NPE in BucketingModule when providedLabel of DataBatch is not set #11775
Comments
Thanks for reporting the issue @milandesai To help the community look into it, please provide more information as asked below (usually the new issue template asks to fill all of that in) - providing complete information in the most concise form is the best way to get help.
Thanks! |
@nswamy please label as "Scala" "Bug" |
Hi @milandesai could you please tell me which version of MXNet you are using? we are also facing some issues about There will be an upcoming PR address this issue. Since it was a pain from |
Hi @lanking520, the mxnet version is 1.1.0, though I believe this issue should exist on master as well based on a quick check. I resolved this by modifying the source in IO.scala to simply do a null check. Will post a PR shortly for reference. |
PR: #11790 |
Adding DataDesc in this PR: #11844 |
#11790 merged. @milandesai can we close this issue? |
Package: Scala
Mxnet Version: 1.1.0
Java Version: openjdk 1.8.0_131
Maven Version: [unused]
Scala Runtime: 2.12.4
We create a DataBatch without setting the
providedLabel
field. We then callBucketingModule.forward(...)
with the data batch and get a NullPointerException:This happens because the implicit method
ListMap2Descs
tries to convertListMap[String, Shape]
intoIndexedSeq[DataDesc]
but fails because the former is null by default.The text was updated successfully, but these errors were encountered: