class_docstr: This is a abstract context-aware recommender. All the context-aware model should implement this class.
  The base context-aware recommender class provide the basic embedding function of feature fields which also
  contains a first-order part of feature fields.
class_docstr_tok: ["This","is","a","abstract","context-aware","recommender",".","All","the","context-aware","model","should","implement","this","class",".","The","base","context-aware","recommender","class","provide","the","basic","embedding","function","of","feature","fields","which","also","contains","a","first-order","part","of","feature","fields","."]
docstr: Embed the token feature columns
  
  Args:
      token_fields (torch.LongTensor): The input tensor. shape of [batch_size, num_token_field]
  
  Returns:
      torch.FloatTensor: The result embedding tensor of token columns.
docstr_tok: ["Embed","the","token","feature","columns","Args",":","token_fields","(","torch.LongTensor",")",":","The","input","tensor",".","shape","of","[","batch_size",",","num_token_field","]","Returns",":","torch.FloatTensor",":","The","result","embedding","tensor","of","token","columns","."]
code: def embed_token_fields(self, token_fields):
      """Embed the token feature columns
  
      Args:
          token_fields (torch.LongTensor): The input tensor. shape of [batch_size, num_token_field]
  
      Returns:
          torch.FloatTensor: The result embedding tensor of token columns.
      """
      # input Tensor shape : [batch_size, num_token_field]
      if token_fields is None:
          return None
      # [batch_size, num_token_field, embed_dim]
      token_embedding = self.token_embedding_table(token_fields)
  
      return token_embedding
  
imports: from logging import getLogger
  import numpy
  import torch
  import torch.nn
  from recbole.model.layers import FMEmbedding, FMFirstOrderLinear, FLEmbedding
  from recbole.utils import ModelType, InputType, FeatureSource, FeatureType, set_color
label_desc: Use image node_id 4 for calling the ContextRecommender obj's underlying member method code with example usage: obj.embed_token_fields(token_fields) and returns: token_embedding, None