reluPrime function

double reluPrime(
  1. double x
)

The derivative of ReLU.

Implementation

double reluPrime(double x) => x < 0 ? 0 : 1;