class_docstr: Meter to calculate mean AP metric for multi-label image classification task.
  
  Args:
      meters_config (AttrDict): config containing the meter settings
  
  meters_config should specify the num_classes
class_docstr_tok: ["Meter","to","calculate","mean","AP","metric","for","multi-label","image","classification","task",".","Args",":","meters_config","(","AttrDict",")",":","config","containing","the","meter","settings","meters_config","should","specify","the","num_classes"]
docstr: Update the scores and targets
docstr_tok: ["Update","the","scores","and","targets"]
code: def update(self, model_output, target):
      """
      Update the scores and targets
      """
      self.validate(model_output, target)
      self.verify_target(target)
  
      self._curr_sample_count += model_output.shape[0]
  
      curr_scores, curr_targets = self._scores, self._targets
      sample_count_so_far = curr_scores.shape[0]
      self._scores = torch.zeros(
          int(self._curr_sample_count[0]),
          self.num_classes,
          dtype=torch.float32,
      )
      self._targets = torch.zeros(
          int(self._curr_sample_count[0]),
          self.num_classes,
          dtype=torch.int8,
      )
  
      if sample_count_so_far > 0:
          self._scores[:sample_count_so_far, :] = curr_scores
          self._targets[:sample_count_so_far, :] = curr_targets
      self._scores[sample_count_so_far:, :] = model_output
      self._targets[sample_count_so_far:, :] = target
      del curr_scores, curr_targets
  
imports: import logging
  import numpy
  import torch
  from classy_vision.generic.distributed_util import all_reduce_sum, gather_from_all
  from classy_vision.meters import ClassyMeter, register_meter
  from vissl.config import AttrDict
  from vissl.utils.env import get_machine_local_and_dist_rank
  from vissl.utils.svm_utils.evaluate import get_precision_recall
label_desc: Use image node_id 13 for calling the MeanAPMeter obj's underlying member method code with example usage: obj.update(model_output, target) without return types