File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ impl Darknet {
241
241
Ok ( image_width)
242
242
}
243
243
244
- pub fn build_model ( & self , vs : & nn:: Path ) -> Result < FuncT > {
244
+ pub fn build_model ( & self , vs : & nn:: Path ) -> Result < FuncT < ' _ > > {
245
245
let mut blocks: Vec < ( i64 , Bl ) > = vec ! [ ] ;
246
246
let mut prev_channels: i64 = 3 ;
247
247
for ( index, block) in self . blocks . iter ( ) . enumerate ( ) {
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ impl VarStore {
149
149
/// Variables are named and organized using paths. This function returns
150
150
/// the top level path for the var store and can be combined with '/'
151
151
/// to create sub-paths.
152
- pub fn root ( & self ) -> Path {
152
+ pub fn root ( & self ) -> Path < ' _ > {
153
153
Path { path : vec ! [ ] , group : 0 , var_store : self }
154
154
}
155
155
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl View for SafeView<'_> {
91
91
& self . shape
92
92
}
93
93
94
- fn data ( & self ) -> std:: borrow:: Cow < [ u8 ] > {
94
+ fn data ( & self ) -> std:: borrow:: Cow < ' _ , [ u8 ] > {
95
95
let mut data = vec ! [ 0 ; self . data_len( ) ] ;
96
96
let numel = self . tensor . numel ( ) ;
97
97
self . tensor . f_copy_data_u8 ( & mut data, numel) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments