Update src/mlpack/methods/ann/activation_functions/softsign_function.hpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>
This commit is contained in:
Adam Kropp
2023-11-13 15:05:10 -05:00
committed by GitHub
co-authored by Ryan Curtin
parent e8f64d5c40
commit c8c8dbe020
@@ -96,7 +96,9 @@ class SoftsignFunction
* @param dy The resulting derivatives.
*/
template<typename InputVecType, typename OutputVecType, typename DerivVecType>
static void Deriv(const InputVecType& x, const OutputVecType& /* y */, DerivVecType& dy)
static void Deriv(const InputVecType& x,
const OutputVecType& /* y */,
DerivVecType& dy)
{
// TODO: same as above
// x = arma::pow(1.0 - arma::abs(y), 2);