Function tch::nn::init::f_init

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

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