random function

VARP random(
  1. List<int> shape, {
  2. double low = 0.0,
  3. double high = 1.0,
  4. int seed0 = 0,
  5. int seed1 = 0,
})

Implementation

VARP random(
  List<int> shape, {
  double low = 0.0,
  double high = 1.0,
  int seed0 = 0,
  int seed1 = 0,
}) {
  return F.randomUniform<float32>(
    F.constant<int32>(shape, [shape.length], format: DimensionFormat.NCHW),
    low: low,
    high: high,
    seed0: seed0,
    seed1: seed1,
  );
}