class_docstr: Vision Transformer
  A PyTorch impl of : `An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale`  -
      https://arxiv.org/abs/2010.11929
class_docstr_tok: ["Vision","Transformer","A","PyTorch","impl","of",":","`","An","Image","is","Worth","16x16","Words",":","Transformers","for","Image","Recognition","at","Scale","`","-","https",":","\/\/arxiv.org\/abs\/2010.11929"]
code: def reset_classifier(self, num_classes, global_pool=""):
      self.num_classes = num_classes
      self.head = (
          nn.Linear(self.embed_dim, num_classes)
          if num_classes > 0
          else nn.Identity()
      )
  
imports: from collections import OrderedDict
  import math
  from functools import partial
  import torch
  import torch.nn
  import torch.nn.functional
  import torch.utils.checkpoint
  import numpy
  from timm.models.layers import DropPath, to_2tuple, trunc_normal_
  from annotator.uniformer.mmcv_custom import load_checkpoint
  from annotator.uniformer.mmseg.utils import get_root_logger
  from ..builder import BACKBONES
label_desc: Use image node_id 6 for calling the UniFormer obj's underlying member method code with example usage: obj.reset_classifier(num_classes, global_pool) without return types