Function tch::nn::func[][src]

pub fn func<'a, F>(f: F) -> Func<'a> where
    F: 'a + Fn(&Tensor) -> Tensor + Send