From 3d024259ee899b03e6ad898328e7b1c7cfb200cd Mon Sep 17 00:00:00 2001 From: lluni Date: Sat, 4 Feb 2023 17:26:49 +0100 Subject: [PATCH] Removed some old code --- src/layers/activation_layer.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/layers/activation_layer.rs b/src/layers/activation_layer.rs index 61324c4..8aa53cf 100644 --- a/src/layers/activation_layer.rs +++ b/src/layers/activation_layer.rs @@ -30,8 +30,6 @@ impl Layer for ActivationLayer { } fn backward_pass(&mut self, output_error: ArrayView1, _learning_rate: f64) -> Array1 { - // (self.activation_prime)(&self.input).into_shape((1 as usize, output_error.len() as usize)).unwrap().dot(&output_error) - // (self.activation_prime)(&self.input) * &output_error let mut temp = (self.activation_prime)(&self.input); temp.zip_mut_with(&output_error, |x, y| *x *= y); temp