'Calculates the ReLu transformation for input array.
Arguments:
ary: numpy array
out: reference to output'

def Relu(self, ary, out=None):

    if (out is not None):
        return np.maximum(ary, 0, out)
    else:
        return np.maximum(ary, 0)
