# Issue with getRow?

**URL:** <https://community.konduit.ai/t/issue-with-getrow/148>\
**Category:** ND4J\
**Created:** [February 20, 2020, 2:36pm UTC](https://community.konduit.ai/t/issue-with-getrow/148 "2020-02-20T14:36:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krudd](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@krudd](https://community.konduit.ai/u/krudd)\
**Post date:** [February 20, 2020, 2:36pm UTC](https://community.konduit.ai/t/issue-with-getrow/148/1 "2020-02-20T14:36:28Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [February 20, 2020, 2:46pm UTC](https://community.konduit.ai/t/issue-with-getrow/148/2 "2020-02-20T14:46:51Z")

</div>

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.
