Skip to main content

random_uniform

Function random_uniform 

Source
pub fn random_uniform<R: CubeRuntime>(
    shape: Shape,
    device: &R::Device,
    lower_bound: f32,
    upper_bound: f32,
    dtype: DType,
) -> CubeTensor<R>
Expand description

Pseudo-random generator with uniform distribution