ruRAND 0.1.52

Random number generation for Ruda.
Documentation
use ruda_kernel::{dsl::Runtime, tensor::{RudaTensor, allocation::empty_device_dtype}};
use ruda_core::tensor::{DType, Shape};

/// Pseudo-random generator with uniform distribution
pub fn random_normal<R: Runtime>(
    shape: Shape,
    device: &R::Device,
    mean: f32,
    std: f32,
    dtype: DType,
) -> RudaTensor<R> {
    let client = R::client(device);
    let output = empty_device_dtype(client.clone(), device.clone(), shape, dtype);

    crate::random_normal(&client, mean, std, output.clone().binding(), dtype.into())
        .expect("Kernel to never fail");

    output
}