piyushghai commented on a change in pull request #13995: [MXNET-1287][WIP]
Scala compiler warnings
URL: https://github.com/apache/incubator-mxnet/pull/13995#discussion_r251552666
##########
File path: scala-package/core/src/main/scala/org/apache/mxnet/IO.scala
##########
@@ -141,28 +141,46 @@ class DataBatch(val data: IndexedSeq[NDArray],
val pad: Int,
// the key for the bucket that should be used for this batch,
// for bucketing io only
- val bucketKey: AnyRef,
+ val bucketKey: AnyRef = null,
// use DataDesc to indicate the order of data/label loading
// (must match the order of input data/label)
- private val providedDataDesc: IndexedSeq[DataDesc],
- private val providedLabelDesc: IndexedSeq[DataDesc]) {
+ private val providedDataDesc: IndexedSeq[DataDesc] = null,
+ private val providedLabelDesc: IndexedSeq[DataDesc] = null) {
// TODO: change the data/label type into IndexedSeq[(NDArray, DataDesc)]
// However, since the data and label can be accessed publicly (no getter and
setter)
// the change on this will break BC
+
+ @deprecated("Use provideDataDesc and provideDataLabel instead", "1.3.0")
Review comment:
Should the deprecation version not be v1.4 ?
----------------------------------------------------------------
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