fn testing_set_weights(&mut self, aa: i32, bb: i32, index: usize, w: &[f32]) -> Result<(), Box<dyn Error>> {
        self.weights[index].weight = w[0];
        self.weights[index].optimizer_data = self.optimizer_lr.initial_data();
        Ok(())
    }
/// Sets internal state of weights based on some completely object-dependent parameters
Sets internal state of weights based on some completely object-dependent parameters
Sets internal state of weights based on some completely object - dependent parameters
fn testing_set_weights(&mut self, aa: i32, bb: i32, index: usize, w: &[f32]) -> Result<(), Box<dyn Error>> {
        self.weights[index].weight = w[0];
        self.weights[index].optimizer_data = self.optimizer_lr.initial_data();
        Ok(())
    }
fn testing_set_weights ( & mut self , aa : i32 , bb : i32 , index : usize , w : & [ f32 ] ) -> Result < ( ) , Box < dyn Error > > { self . weights [ index ] . weight = w [ 0 ] ; self . weights [ index ] . optimizer_data = self . optimizer_lr . initial_data ( ) ; Ok ( ( ) ) }
Sets internal state of weights based on some completely object-dependent parameters
Sets internal state of weights based on some completely object - dependent parameters
&mut self
aa
i32
bb
i32
index
usize
w
&[f32]
&mut self
aa
i32
bb
i32
index
usize
w
&[f32]