class_docstr: Modified from Partial-FC
class_docstr_tok: ["Modified","from","Partial-FC"]
code: def prepare_queue_lambda(self, label, iters):
      self.queue_lambda[:] = 0.0
      if iters > self.cfg["start_iters"]:
          allowed_delta = self.cfg["allowed_delta"]
          if self.vpl_mode == 0:
              past_iters = iters - self.queue_iters
              idx = torch.where(past_iters <= allowed_delta)[0]
              self.queue_lambda[idx] = self.cfg["lambda"]
  
          if iters % 2000 == 0 and self.rank == 0:
              logging.info(
                  "[%d]use-lambda: %d/%d"
                  % (iters, len(idx), self.num_local)
              )
  
file_path: insightface/recognition/vpl/vpl.py
imports: import logging
  import os
  import torch
  import torch.distributed
  from torch.nn import Module
  from torch.nn.functional import normalize, linear
  from torch.nn.parameter import Parameter
label_desc: Use image node_id 7 for calling the VPL obj's underlying member method code with example usage: obj.prepare_queue_lambda(label, iters) without return types