class_docstr: This module produces sinusoidal positional embeddings of any length.
  
  Padding symbols are ignored.
class_docstr_tok: ["This","module","produces","sinusoidal","positional","embeddings","of","any","length",".","Padding","symbols","are","ignored","."]
code: def prepare_for_onnx_export_(self):
      self.onnx_trace = True
  
file_path: fairseq/fairseq/modules/sinusoidal_positional_embedding.py
imports: import math
  from typing import Any, Optional
  import torch
  import torch.onnx.operators
  from fairseq import utils
  from torch import nn, Tensor
label_desc: Use image node_id 2 for calling the SinusoidalPositionalEmbedding obj's underlying member method code with example usage: obj.prepare_for_onnx_export_() without return types