lanking520 commented on a change in pull request #14804: Scala/Java Predict API 
fix #14756
URL: https://github.com/apache/incubator-mxnet/pull/14804#discussion_r279121957
 
 

 ##########
 File path: 
scala-package/core/src/main/scala/org/apache/mxnet/module/BaseModule.scala
 ##########
 @@ -264,7 +276,8 @@ abstract class BaseModule {
           s"in mini-batches (${out.size})." +
       "Maybe bucketing is used?")
     )
-    val concatenatedOutput = outputBatches.map(out => NDArray.concatenate(out))
+    val oBT = outputBatches.transpose
+    val concatenatedOutput = oBT.map(out => NDArray.concatenate(out))
 
 Review comment:
   This create a soft copy, the content inside contains same reference

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to