class_docstr: Shorthand for a learnable embedding.
class_docstr_tok: ["Shorthand","for","a","learnable","embedding","."]
docstr: This is a batch-first implementation
docstr_tok: ["This","is","a","batch-first","implementation"]
code: def forward(self, input_ids):
      """This is a batch-first implementation"""
      position_ids = self.position_ids[:, : input_ids.shape[1]]
      return self.embedding(position_ids)
  
imports: import torch
  import math
  from typing import Tuple
  from einops import repeat
label_desc: Use image node_id 2 for calling the LearnablePositional obj's underlying member method code with example usage: obj.forward(input_ids) and returns: self