-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Scala: DataDesc IllegalArgumentException with simple example #12409
Comments
@mxnet-label-bot [Scala] |
Hi @mariussoutier this problem actually addressed in 1.3 in this PR: #11844. Try with this one! |
@lanking520 Is there a published version of that I can use or do I have to build it myself? |
Unfortunately, you need to build from source with 1.3 or please wait for us to publish that. It will be out very soon. |
Ok I'll test again then. I feel like the Scala API could use some love :-) |
@mariussoutier we are working on a 1.3.0 pre-release, we should be able to have a RC maven package in staging soon. |
Nice, looking forward to it. |
@mariussoutier we released the package to Staging here if you would like to test it. See the instructions on how to use packages in Staging repo here: |
@nswamy Just tried it out, Module API seems to work now. Thanks! |
Is there any difference between Module and FeedForward anyway? |
Feedforward as the name suggests works for FeedForward networks which are single input/single output but Module APIs will work for multi-input/multi-output FeedForward and CNNs, GANs, RNNs(probably requires the extended Bucketing Module which is in examples) |
Ok, makes sense. I've also used FeedForward for my CNN :-) |
One more issue, Module-based GPU training on Ubuntu fails during the second epoch with a SIGTERM. I don't know yet what's happening. FeedForward-based training in 1.2.1 works without a problem. |
could you please open a new issue with some reproducible code? |
Sure, will do. |
Seems like this extra question was filed and replied to in #12553. Could we close this issue as it has been addressed in comments above? |
Description
Fitting using Scala and Module API throws an IAE.
Apparently the label shape of (50) doesn't correspond to expected the NCHW format.
Environment info (Required)
macOS 10.13.6
IntelliJ 2018.2.2
Scala 2.11.12
Java 1.8.0_121
MXNet 1.2.1
Error Message:
Minimum reproducible example
Tried debugging this, but pretty difficult to find out what's going on with a stringly typed API.
println(trainDataIter.provideData)
-> Map(data -> (50,3,128,128))println(trainDataIter.provideLabel)
-> Map(label -> (50))The text was updated successfully, but these errors were encountered: