3 ms·
if x <= 0: return 0 else: return x Is in the core of most neural networks today (relu activation), so it is definitely useful.
by gradientfree 7y ago
if x <= 0:
return 0
else:
return x
Is in the core of most neural networks today (relu activation), so it is definitely useful.