Created
July 28, 2023 12:33
-
-
Save hietalajulius/9035e0ed5e464d38b4a9dd5d3bbdea9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Perform backward pass through the MSE loss function. | |
pub fn backward(&self) -> Array2<f64> { | |
// Return dL/dx obtained from the `self.dL_dx` field | |
self.dL_dx.clone().expect("Need to call forward() first.") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment