code: def __init__(self, ent_tot, rel_tot, dim=100):
      super(RESCAL, self).__init__(ent_tot, rel_tot)
  
      self.dim = dim
      self.ent_embeddings = nn.Embedding(self.ent_tot, self.dim)
      self.rel_matrices = nn.Embedding(
          self.rel_tot, self.dim * self.dim
      )
  
      nn.init.xavier_uniform_(self.ent_embeddings.weight.data)
      nn.init.xavier_uniform_(self.rel_matrices.weight.data)
  
file_path: OpenKE/openke/module/model/RESCAL.py
imports: import torch
  import torch.nn
  from .Model import Model
label_desc: Use image node_id 1 to create a new RESCAL object from inherited base classes: Model with example: obj = RESCAL(ent_tot, rel_tot, dim)