Skip to content

Commit

Permalink
Transpose in activation_layer
Browse files Browse the repository at this point in the history
Co-authored-by: Amrita Goswami <amrita16thaug646@gmail.com>
  • Loading branch information
MSallermann and amritagos committed Oct 19, 2023
1 parent 2799742 commit 56851bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/activation_layer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ActivationLayer : public Layer<scalar>
// computes dE/dX for a given dE/dY (and update parameters if any)
Vector<scalar> backward_propagation( Vector<scalar> & output_error, scalar learning_rate ) override
{
return Activation::df( this->input ) * output_error;
return Activation::df( this->input ).transpose() * output_error;
}
};
} // namespace Robbie

0 comments on commit 56851bd

Please sign in to comment.