class_docstr: A model can inherit this class to indicate that it can be traced and deployed with caffe2.
class_docstr_tok: ["A","model","can","inherit","this","class","to","indicate","that","it","can","be","traced","and","deployed","with","caffe2","."]
code: def _set_tensor_mode(self, v):
      self._tensor_mode = v
  
imports: import math
  from typing import Dict
  import torch
  import torch.nn.functional
  from detectron2.layers import ShapeSpec, cat
  from detectron2.layers.roi_align_rotated import ROIAlignRotated
  from detectron2.modeling import poolers
  from detectron2.modeling.proposal_generator import rpn
  from detectron2.modeling.roi_heads.mask_head import mask_rcnn_inference
  from detectron2.structures import Boxes, ImageList, Instances, Keypoints, RotatedBoxes
  from .shared import alias, to_device
label_desc: Use image node_id 2 for calling the Caffe2Compatible obj's underlying member method code with example usage: obj._set_tensor_mode(v) without return types