In [20]: def relu(x):
...: return (x>0) * x
...:
Is that because in Python, True is interpreted as 1 while False as 0 implicitly?
In [20]: def relu(x):
...: return (x>0) * x
...:
Is that because in Python, True is interpreted as 1 while False as 0 implicitly?