Function tch::nn::f_init[][src]

pub fn f_init(i: Init, dims: &[i64], device: Device) -> Result<Tensor, TchError>

Creates a new float tensor with the specified shape, device, and initialization.