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_r208720830
##########
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 = {
+ this.dataDType = dataDType
+ this.labelDType = labelDType
+ this
+ }
+
+ /**
+ * Set the layout.
+ * @param dataLayout The layout of the data, default is NCHW
+ * @param labelLayout The layout of the label, default is N
+ * @return this
+ */
+ def setLayout(dataLayout: String, labelLayout: String): Builder = {
Review comment:
same as setdtype
----------------------------------------------------------------
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