diffusion_rs_common::nn::func

Function func

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