class_docstr: MViT models using PyTorchVideo model builder.
class_docstr_tok: ["MViT","models","using","PyTorchVideo","model","builder","."]
docstr: The `__init__` method of any subclass should also contain these
      arguments.
  
  Args:
      cfg (CfgNode): model building configs, details are in the
          comments of the config file.
code: def __init__(self, cfg):
      """
      The `__init__` method of any subclass should also contain these
          arguments.
  
      Args:
          cfg (CfgNode): model building configs, details are in the
              comments of the config file.
      """
      super(PTVMViT, self).__init__()
  
      assert (
          cfg.DETECTION.ENABLE is False
      ), "Detection model is not supported for PTVMViT yet."
  
      self._construct_network(cfg)
  
imports: from functools import partial
  import torch.nn
  from detectron2.layers import ROIAlign
  from slowfast.models.batchnorm_helper import get_norm
  from slowfast.models.video_model_builder import _POOL1, _TEMPORAL_KERNEL_BASIS
  from pytorchvideo.models.csn import create_csn
  from pytorchvideo.models.head import create_res_basic_head, create_res_roi_pooling_head
  from pytorchvideo.models.r2plus1d import create_2plus1d_bottleneck_block, create_r2plus1d
  from pytorchvideo.models.resnet import create_bottleneck_block, create_resnet
  from pytorchvideo.models.slowfast import create_slowfast
  from pytorchvideo.models.vision_transformers import create_multiscale_vision_transformers
  from pytorchvideo.models.x3d import Swish, create_x3d, create_x3d_bottleneck_block
  from .build import MODEL_REGISTRY
label_desc: Use image node_id 1 to create a new PTVMViT object from inherited base classes: nn with example: obj = PTVMViT(cfg)