Ejemplo n.º 1
0
 public void Normal(NDArray result, int?seed, float mean, float stdv)
 {
     using (var cpuCopy = new NDArray(cpuAllocator, result.ElementType, result.Shape))
     {
         cpuRandom.Normal(cpuCopy, seed, mean, stdv);
         TOps.Copy(result, cpuCopy);
     }
 }
Ejemplo n.º 2
0
 public void Normal(Tensor result, int?seed, float mean, float stdv)
 {
     using (Tensor cpuCopy = new Tensor(cpuAllocator, result.ElementType, result.Sizes))
     {
         cpuRandom.Normal(cpuCopy, seed, mean, stdv);
         Ops.Copy(result, cpuCopy);
     }
 }