According to mod_activation.F90 file, It seems like derivative function of leaky_relu is same as RELU.
purefunctionleaky_relu_prime(x, alpha) result(res)
! First derivative of the REctified Linear Unit (RELU) activation function.
real(rk), intent(in) :: x(:)
real(rk), intent(in) :: alpha
real(rk) :: res(size(x))
where (0.3* x > 0)
res =1elsewhere
res =0end whereendfunction leaky_relu_prime
According to mod_activation.F90 file, It seems like derivative function of leaky_relu is same as RELU.