Issue with getRow?

I’m seeing something interesting in Nd4j’s getRow. When doing getRow(0) it appears to return all of the data, not just the first row. Code snippet:
val shape = outMat.shape()
println(shape.mkString(","))
val out = which + “;” + (0L until shape(0)).map(ll=>{
println(ll)
val data = outMat.getRow(ll).data().asDouble()
println(data.length)
data.mkString(",")
}).mkString("\n")

outMat is an INDArray 2D array with size (5,256). Obviously using Scala, and not the latest version of DL4J (1.0.0-beta2), so forgive me if this has been seen before!

this code snippet yields:
0
1280
1
256
2
256
3
256
4
256

Anyone else seen this issue? Is it something I’m doing, or a legitimate bug?

beta2 is quite old. I know that there were changes in getRow since then. I suggest you update to beta6 first, it might have been an issue that has been fixed.