code: def __init__(
      self,
      num_users: int,
      num_items: int,
      num_factors: int = 8,
  ):
      super(GMF, self).__init__()
  
      self.num_users = num_users
      self.num_items = num_items
      self.user_embedding = nn.Embedding(num_users, num_factors)
      self.item_embedding = nn.Embedding(num_items, num_factors)
  
      self.logit = nn.Linear(num_factors, 1)
      self.Sigmoid = nn.Sigmoid()
  
      self._init_weight()
  
imports: import torch
  import torch.nn
label_desc: Use image node_id 1 to create a new GMF object from inherited base classes: nn with example: obj = GMF(num_users, num_items, num_factors)