class_docstr: VioletBase module
class_docstr_tok: ["VioletBase","module"]
code: def go_cross(self, feat_img, mask_img, feat_txt, mask_txt):
      feat, mask = torch.cat(
          [feat_img, feat_txt], dim=1
      ), torchvision.cat([mask_img, mask_txt], dim=1)
      mask = self.mask_ext(mask, mask.shape, mask.device)
      out = self.trsfr(feat, mask, output_attentions=True)
      return out["last_hidden_state"], out["attentions"]
  
file_path: towhee/towhee/models/violet/violet.py
imports: import torch
  import os
  from towhee.models.video_swin_transformer.video_swin_transformer import VideoSwinTransformer
label_desc: Use image node_id 3 for calling the VioletBase obj's underlying member method code with example usage: obj.go_cross(feat_img, mask_img, feat_txt, mask_txt) and returns: out,  out