dpnp.random.standard_normal
- dpnp.random.standard_normal(size=None, device=None, usm_type='device', sycl_queue=None)[source]
Draw samples from a standard Normal distribution
(mean=0, stdev=1).For full documentation refer to
numpy.random.standard_normal.- Parameters:
device ({None, string, SyclDevice, SyclQueue, Device}, optional) --
An array API concept of device where the output array is created. device can be
None, a oneAPI filter selector string, an instance ofdpctl.SyclDevicecorresponding to a non-partitioned SYCL device, an instance ofdpctl.SyclQueue, or adpctl.tensor.Deviceobject returned bydpnp.ndarray.device.Default:
None.usm_type ({"device", "shared", "host"}, optional) -- The type of SYCL USM allocation for the output array.
sycl_queue ({None, SyclQueue}, optional) -- A SYCL queue to use for output array allocation and copying. The sycl_queue can be passed as
None(the default), which means to get the SYCL queue from device keyword if present or to use a default queue. Default:None.
- Returns:
out -- A floating-point array of shape size of drawn samples, or a single sample if size was not specified. Output array data type is
dpnp.float64if device supports it, ordpnp.float32otherwise.- Return type:
dpnp.ndarray
Examples
Draw samples from the distribution:
>>> s = dpnp.random.standard_normal(1000)