4 ms·
To be honest, I don’t understand its popularity. For example, I was trying to understand a batch normalization function defined as def batchnorm_forward(x, ga
by hahahaha23 9y ago
To be honest, I don’t understand its popularity.
For example, I was trying to understand a batch normalization function defined as
def batchnorm_forward(x, gamma, beta, eps):
I can’t tell if gamma/beta are scalar or vector?
- brorfred 9y agoWouldn't the default assumption be that you can use either a scalar or vector?
- happy-go-lucky 9y agoYou could try np.isscalar() and np.array().ndim in NumPy.
- tedmiston 9y agoWe have type annotations in python now which can be used to clarify data types in function signatures. https://docs.python.org/3/library/typing.html https://docs.python.org/3/library/typing.html