class_docstr: Scaled positional encoding module.
  
  See Sec. 3.2  https://arxiv.org/abs/1809.08895
  
  Args:
      d_model (int): Embedding dimension.
      dropout_rate (float): Dropout rate.
      max_len (int): Maximum input length.
class_docstr_tok: ["Scaled","positional","encoding","module",".","See","Sec",".","3.2","https",":","\/\/arxiv.org\/abs\/1809.08895","Args",":","d_model","(","int",")",":","Embedding","dimension",".","dropout_rate","(","float",")",":","Dropout","rate",".","max_len","(","int",")",":","Maximum","input","length","."]
docstr: Reset parameters.
docstr_tok: ["Reset","parameters","."]
code: def reset_parameters(self):
      """Reset parameters."""
      self.alpha.data = torch.tensor(1.0)
  
imports: import math
  import torch
label_desc: Use image node_id 2 for calling the ScaledPositionalEncoding obj's underlying member method code with example usage: obj.reset_parameters() without return types