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