diff --git a/bigdl/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/feature/FeatureSet.scala b/bigdl/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/feature/FeatureSet.scala index 39a64e8aa7a..cc6b383295d 100644 --- a/bigdl/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/feature/FeatureSet.scala +++ b/bigdl/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/feature/FeatureSet.scala @@ -399,7 +399,7 @@ object PythonLoaderFeatureSet{ jepRDD } - protected def toArrayTensor( + private[zoo] def toArrayTensor( data: AnyRef): Array[Tensor[Float]] = { data match { case ndArray: NDArray[_] => @@ -418,7 +418,7 @@ object PythonLoaderFeatureSet{ } } - protected def ndArrayToTensor(ndArray: NDArray[_]): Tensor[Float] = { + private[zoo] def ndArrayToTensor(ndArray: NDArray[_]): Tensor[Float] = { val array = ndArray.asInstanceOf[NDArray[Array[_]]] val data = array.getData() data(0) match {