def model_transformer_hot(model):
- model.temperature = args.temperature_hot
+ # model.temperature = args.temperature_hot
+ model.set_noise_injection(1.0, ("ffw", 2))
def model_transformer_cold(model):
- model.temperature = args.temperature_cold
+ pass
+ # model.temperature = args.temperature_cold
c_quizzes_procedure = [
m.noise_std = 0.0
def set_noise_injection(self, noise_std, identifier=None):
- for m in model.modules():
+ for m in self.modules():
if isinstance(m, NoiseInjector):
if identifier is None or identifier == m.identifier:
m.noise_std = noise_std