class_docstr: This is Cross&Compress Unit for MKR model to model feature interactions between items and entities.
class_docstr_tok: ["This","is","Cross","&","Compress","Unit","for","MKR","model","to","model","feature","interactions","between","items","and","entities","."]
code: def __init__(self, dim):
      super(CrossCompressUnit, self).__init__()
      self.dim = dim
      self.fc_vv = nn.Linear(dim, 1, bias=True)
      self.fc_ev = nn.Linear(dim, 1, bias=True)
      self.fc_ve = nn.Linear(dim, 1, bias=True)
      self.fc_ee = nn.Linear(dim, 1, bias=True)
  
file_path: RecBole/recbole/model/knowledge_aware_recommender/mkr.py
imports: import torch
  import torch.nn
  from recbole.model.abstract_recommender import KnowledgeRecommender
  from recbole.model.init import xavier_normal_initialization
  from recbole.model.layers import MLPLayers
  from recbole.utils import InputType
label_desc: Use image node_id 1 to create a new CrossCompressUnit object from inherited base classes: nn with example: obj = CrossCompressUnit(dim)