You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but [1] actually has biases of the layer, and according to the paper, we're supposed to just scale the weights not the biases, so why is the code initializing biases as well ?
D:\jupyter notebook\lsuv_init.py in LSUVinit(model, batch, verbose, margin, max_iter)
64 weights_and_biases = layer.get_weights()
65 weights_and_biases[0] /= np.sqrt(variance) / np.sqrt(needed_variance)
---> 66 layer.set_weights(weights_and_biases)
67 weights /= np.sqrt(variance) / np.sqrt(needed_variance)
68 layer.set_weights([weights, biases])
UnboundLocalError: local variable 'weights' referenced before assignment
The text was updated successfully, but these errors were encountered: