Beispiel #1
0
        public Tensor RandomBernoulli(long[] shape, float p)
        {
            var result = new NDArray(DeviceManager.Current, DType.Float32, shape);

            TOps.RandomBernoulli(result, new SeedSource(), p);
            return(Out(result));
        }