class_docstr: A Pytorch module to obtain feature embeddings for pairwise features
  
  Usage:
      encoder = PairwiseEncoder(config)
      pairwise_features = encoder(pair_indices, doc)
docstr: A workaround to get current device (which is assumed to be the
  device of the first parameter of one of the submodules) 
code: def device(self) -> torch.device:
      """A workaround to get current device (which is assumed to be the
      device of the first parameter of one of the submodules)"""
      return next(self.genre_emb.parameters()).device
  
file_path: stanza/stanza/models/coref/pairwise_encoder.py
imports: from typing import List
  import torch
  from stanza.models.coref.config import Config
  from stanza.models.coref.const import Doc
label_desc: Use image node_id 2 for calling the PairwiseEncoder obj's underlying member method code with example usage: obj.device() and returns: next