(self, inputs, training=None, mask=None)
return pos_embed
Args:
       inputs: [batch_size, seq_x_len, embed_dim]
    Return:
      pos_embed: [batch_size, seq_x_len, embed_dim]
Args:
       inputs: [batch_size, seq_x_len, embed_dim]
    Return:
      pos_embed: [batch_size, seq_x_len, embed_dim]
Args : inputs : [ batch_size seq_x_len embed_dim ] Return : pos_embed : [ batch_size seq_x_len embed_dim ]
def call(self, inputs, training=None, mask=None):
    """
    Args:
       inputs: [batch_size, seq_x_len, embed_dim]
    Return:
      pos_embed: [batch_size, seq_x_len, embed_dim]
    """
    seq_len = shape_list(inputs)[1]
    pos_embed = self.pos_embed[:, :seq_len, :]
    return pos_embed
def call ( self , inputs , training = None , mask = None ) : seq_len = shape_list ( inputs ) [ 1 ] pos_embed = self . pos_embed [ : , : seq_len , : ] return pos_embed