<gh_stars>0
import numpy as np

from artificial_neural_network.layer import Layer


class ReLULayer(Layer):
    def forward(self, x):
        return np.maximum(0, x)

    def backward(self, x, gradient_y):
        return gradient_y * (x > 0)
