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