create ResetWeights(). Only for dense weights