class_docstr: Vision Transformer with support for patch or hybrid CNN input stage
      
class_docstr_tok: ["Vision","Transformer","with","support","for","patch","or","hybrid","CNN","input","stage"]
code: def get_num_layers(self):
      return len(self.blocks)
  
imports: import warnings
  import math
  import torch
  from functools import partial
  import torch.nn
  import torch.nn.functional
  import torch.utils.checkpoint
  from timm.models.layers import drop_path, to_2tuple, trunc_normal_
label_desc: Use image node_id 4 for calling the BEiT obj's underlying member method code with example usage: obj.get_num_layers() and returns: len