Function tch::nn::init

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

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