lanking520 commented on a change in pull request #12848: Fix Batch input issue 
with Scala Benchmark
URL: https://github.com/apache/incubator-mxnet/pull/12848#discussion_r226120608
 
 

 ##########
 File path: scala-package/core/src/main/scala/org/apache/mxnet/Shape.scala
 ##########
 @@ -34,6 +34,7 @@ class Shape(dims: Traversable[Int]) extends Serializable {
   def size: Int = shape.size
   def length: Int = shape.length
   def drop(dim: Int): Shape = new Shape(shape.drop(dim))
+  def dropBack(dim : Int) : Shape = new Shape(shape.dropRight(dim))
 
 Review comment:
   Is there any use case if the user would like to drop some dimension from 
back?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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