code: def __init__(self, emb_size, emb_dimension):
      super(SkipGramModel, self).__init__()
      self.emb_size = emb_size
      self.emb_dimension = emb_dimension
      self.u_embeddings = nn.Embedding(
          emb_size, emb_dimension, sparse=True
      )
      self.v_embeddings = nn.Embedding(
          emb_size, emb_dimension, sparse=True
      )
  
      initrange = 1.0 / self.emb_dimension
      init.uniform_(
          self.u_embeddings.weight.data, -initrange, initrange
      )
      init.constant_(self.v_embeddings.weight.data, 0)
  
file_path: dgl/examples/pytorch/metapath2vec/model.py
imports: import torch
  import torch.nn
  import torch.nn.functional
  from torch.nn import init
label_desc: Use image node_id 1 to create a new SkipGramModel object from inherited base classes: nn with example: obj = SkipGramModel(emb_size, emb_dimension)