diff --git a/scala-package/macros/src/main/scala/org/apache/mxnet/GeneratorBase.scala b/scala-package/macros/src/main/scala/org/apache/mxnet/GeneratorBase.scala index ec24f19dfc14..498c4e943669 100644 --- a/scala-package/macros/src/main/scala/org/apache/mxnet/GeneratorBase.scala +++ b/scala-package/macros/src/main/scala/org/apache/mxnet/GeneratorBase.scala @@ -191,7 +191,7 @@ private[mxnet] trait RandomHelpers { // unify call targets (random_xyz and sample_xyz) and unify their argument types private def unifyRandom(func: Func, isSymbol: Boolean): Func = { var typeConv = Set("org.apache.mxnet.NDArray", "org.apache.mxnet.Symbol", - "java.lang.Float", "java.lang.Integer") + "Float", "Int") func.copy( name = func.name.replaceAll("(random|sample)_", ""),