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); } }
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); } }