Think I can help with that as I had the identical error recently. DL4J expects the first dimension of your input to be batch size, so I think you need to transpose your input vector.
Thank you for telling us about that bug in the Tutorials. Unfortunately, the tutorials are a bit out of date at the moment - so stumbling stones like this are going to happen every once in a while. I’ve updated the code in the tutorial to behave as needed at that point.
getRow now returns a simple vector, instead of a [1,n] matrix. But as the model always expects a matrix with the first dimension being the batch size, as @will-maclean has already noted, we need to get the old behavior in this case.
To get a matrix instead of a vector, you have to tell getRow to keep the leading dimension:
Sorry for the late response, got busy last few weeks.
Thanks for clarifying the DL4J behaviour. And yes, that fixed the issue.
Also, unless helping persons like @treo are here, no one has to worry about the stumbling stones.