yzhliu commented on a change in pull request #11844: [MXNET-689] add DataDesc 
type for the Scala Package
URL: https://github.com/apache/incubator-mxnet/pull/11844#discussion_r208720739
 
 

 ##########
 File path: scala-package/core/src/main/scala/org/apache/mxnet/IO.scala
 ##########
 @@ -216,6 +244,30 @@ object DataBatch {
       this
     }
 
+    /**
+      * Set the dtype.
+      * @param dataDType The dtype of the data, default is Float32
+      * @param labelDType The dtype of the label, default is Int32
+      * @return this
+      */
+    def setDType(dataDType: DType, labelDType: DType): Builder = {
 
 Review comment:
   suggest to have `setDataDType` and `setLabelDType` separately, which will be 
helpful for Java users who want to set dtype for only one of them.

----------------------------------------------------------------
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