docstr: Update the teacher temperature
docstr_tok: ["Update","the","teacher","temperature"]
code: def update_teacher_temperature(self, task: tasks.ClassyTask) -> None:
      """
      Update the teacher temperature
      """
      if self.teacher_temp_schedule is None:
          teacher_temp_min = task.loss.teacher_temp_min
          teacher_temp_max = task.loss.teacher_temp_max
          teacher_temp_warmup_iters = (
              task.loss.teacher_temp_warmup_iters
          )
  
          self.teacher_temp_schedule = torch.cat(
              (
                  torch.linspace(
                      teacher_temp_min,
                      teacher_temp_max,
                      teacher_temp_warmup_iters,
                  ),
                  torch.ones(
                      max(
                          0,
                          task.max_iteration
                          - teacher_temp_warmup_iters,
                      )
                  )
                  * teacher_temp_max,
              )
          )
  
      teacher_temp = self.teacher_temp_schedule[task.iteration].item()
      task.loss.teacher_temp = teacher_temp
      task.additional_log_data["dino_teacher_temp"] = teacher_temp
  
file_path: vissl/vissl/hooks/dino_hooks.py
imports: import torch
  from classy_vision import tasks
  from classy_vision.hooks.classy_hook import ClassyHook
  from vissl.hooks.hook_utils import MomentumTeacherInLossHook
label_desc: Use image node_id 3 for calling the DINOHook obj's underlying member method code with example usage: obj.update_teacher_temperature(task) without return types