# Naive scalar relu implementation. In the real world, most calculations are done on vectors def relu(x): if x < 0: return 0 else: return x output = relu(value)