mdespriee opened a new issue #12140: Impossible to provide arguments to random_normal in scala ? URL: https://github.com/apache/incubator-mxnet/issues/12140 ## Description I'm trying to use random_normal in the Symbol API. In scala. The docs mentions that loc and scale could be Symbols and have a shape (that's what I'm looking for). Although, when I try to use the symbol: ``` val mean:Symbol... val std:Symbol... Symbol.random_normal(i.output)(mean, std)() ``` MXNet complains that arguments are incorrect. ``` org.apache.mxnet.MXNetError: [23:24:15] src/core/symbolic.cc:290: Check failed: args.size() <= n_req (2 vs. 0) Incorrect number of arguments, requires 0, provided 2 ``` Sounds like a bug to me. Or do I miss something ? ## Environment - Linux setup using https://raw.githubusercontent.com/apache/incubator-mxnet/1.2.1/ci/docker/install/ubuntu_core.sh (actually in a Docker) - MXNet 1.2.1, scala 2.11.11 ## Full code ``` object NormalTest extends App { val means = Symbol.Variable("mean") val std = Symbol.Variable("std") val s = Symbol.random_normal("gaussian")(means, std)() val exec = s.bind(Context.defaultCtx, Map( "means" -> NDArray.array(Array(0f, 10f), Shape(2)), "std" -> NDArray.array(Array(1f, 2f), Shape(2)) )) exec.forward() println(s"Result= ${exec.outputs.head.toArray.mkString(",")} ") } ```
---------------------------------------------------------------- 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
