set gain to zero for D1 neurons during training