class_docstr: Language model embeddings.
  
  Arguments:
      hidden_size: hidden size
      vocab_size: vocabulary size
      max_sequence_length: maximum size of sequence. This
                           is used for positional embedding
      embedding_dropout_prob: dropout probability for embeddings
      init_method: weight initialization method
      num_tokentypes: size of the token-type embeddings. 0 value
                      will ignore this embedding
class_docstr_tok: ["Language","model","embeddings",".","Arguments",":","hidden_size",":","hidden","size","vocab_size",":","vocabulary","size","max_sequence_length",":","maximum","size","of","sequence",".","This","is","used","for","positional","embedding","embedding_dropout_prob",":","dropout","probability","for","embeddings","init_method",":","weight","initialization","method","num_tokentypes",":","size","of","the","token-type","embeddings",".","0","value","will","ignore","this","embedding"]
docstr: Zero out all parameters in embedding.
docstr_tok: ["Zero","out","all","parameters","in","embedding","."]
code: def zero_parameters(self):
      """Zero out all parameters in embedding."""
      self.word_embeddings.weight.data.fill_(0)
      self.word_embeddings.weight.shared = True
      if self.add_position_embedding:
          self.position_embeddings.weight.data.fill_(0)
          self.position_embeddings.weight.shared = True
      if self.num_tokentypes > 0:
          self.tokentype_embeddings.weight.data.fill_(0)
          self.tokentype_embeddings.weight.shared = True
  
imports: import torch
  import torch.nn.functional
  from megatron import get_args
  from megatron.core import mpu, tensor_parallel
  from megatron.core.enums import ModelType
  from megatron.core.models.common.embeddings.rotary_pos_embedding import RotaryEmbedding
  from .enums import AttnMaskType, LayerType
  from .module import MegatronModule
  from .transformer import ParallelTransformer
  from .utils import get_linear_layer
  from .utils import init_method_normal, scaled_init_method_normal
label_desc: Use image node_id 2 for calling the Embedding obj's underlying member method code with example usage: obj.zero_parameters() without return types