Loading TOC...

cntk:uniform-random

cntk:uniform-random(
   $shape as cntk:shape,
   $data-type as xs:string,
   [$low as xs:double],
   [$high as xs:double],
   [$seed as xs:unsignedLong],
   [$name as xs:string]
) as cntk:function

Summary

Create an instance of a uniform random operation. This produces random numbers with the specified shape (no dynamic axes), uniformly distributed in [low, high)

Parameters
$shape Shape of the output (entries are independent random draws).
$data-type Data type. Default is np.float32.
$low Lower end of the range of the random numbers.
$high Upper end of the range of the random numbers.
$seed Pseudo random number generator seed (default: automatically select a unique seed).
$name The name of the function instance in the network.

Example

  cntk:uniform-random(cntk:shape(37), "double", 3180629810.512880, 4007486658.999205,
  1755089431807944711, "TPC$nG")
  => cntk:function(Composite RandomDistribution ())

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.