Make func cloneable. (#1137)

This commit is contained in:
Laurent Mazare
2023-10-20 16:28:50 +01:00
committed by GitHub
parent 99cf13e8e2
commit 7366aeac21
3 changed files with 9 additions and 7 deletions

View File

@ -108,7 +108,7 @@ pub fn parse_config<T: AsRef<Path>>(path: T) -> Result<Darknet> {
}
enum Bl {
Layer(Box<dyn candle_nn::Module + Send>),
Layer(Box<dyn candle_nn::Module + Send + Sync>),
Route(Vec<usize>),
Shortcut(usize),
Yolo(usize, Vec<(usize, usize)>),