lanking520 commented on issue #12140: Impossible to provide arguments to 
random_normal in scala ?
URL: 
https://github.com/apache/incubator-mxnet/issues/12140#issuecomment-412668354
 
 
   @mdespriee looks like you are using it in a wrong way, are you trying to use 
it in Symbolic way?
   Here is what I have tried using NDArray
   ```Scala
   val nd = NDArray.random_normal(Map("loc" -> 0, "scale" -> 1, "shape" -> 
Shape(2, 2)))()
   nd.toArray.foreach(println)
   ```
   Output is:
   ```
   1.1630787
   0.4838046
   0.29956347
   0.15302546
   ```

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to