Function candle_nn::func::func_t

source ยท
pub fn func_t<'a, F>(f: F) -> FuncT<'a>
where F: 'a + Fn(&Tensor, bool) -> Result<Tensor> + Send + Sync,