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