class_docstr: `Attention is all you need <https://arxiv.org/abs/1706.03762>`_ 中提到的多头注意力
  
  :param d_model:
  :param n_head:
  :param dropout:
  :param layer_idx:
class_docstr_tok: ["`","Attention","is","all","you","need","<","https",":","\/\/arxiv.org\/abs\/1706.03762",">","`","_","\u4e2d\u63d0\u5230\u7684\u591a\u5934\u6ce8\u610f\u529b",":","param","d_model",":",":","param","n_head",":",":","param","dropout",":",":","param","layer_idx",":"]
code: def reset_parameters(self):
      nn.init.xavier_uniform_(self.q_proj.weight)
      nn.init.xavier_uniform_(self.k_proj.weight)
      nn.init.xavier_uniform_(self.v_proj.weight)
      nn.init.xavier_uniform_(self.out_proj.weight)
  
imports: import math
  import torch
  import torch.nn.functional
  from torch import nn
  from .decoder.seq2seq_state import TransformerState
label_desc: Use image node_id 3 for calling the MultiHeadAttention obj's underlying member method code with example usage: obj.reset_parameters() without return types