pub fn perlin_noise_2d(
    shape: (usize, usize),
    n: usize,
    res: (usize, usize),
    seed: u64,
    options: (Kind, Device)
) -> Tensor
Expand description

Generate 2d perlin noise.

Arguments

shape: (usize, usize) - The shape of the resulting image n: usize - The number samples generated res: (usize, usize) - The resolution of the noise seed: u64 - The seed for the random number generator options: (tch::Kind, tch::Device) - The kind and device of the resulting tensor

Returns

Tensor - The perlin noise [N, 1, H, W]