class_docstr: Apply dropout with probability `embed_p` to an embedding layer `emb`.
class_docstr_tok: ["Apply","dropout","with","probability","`","embed_p","`","to","an","embedding","layer","`","emb","`","."]
code: def __init__(
      self,
      emb: nn.Embedding,  # Wrapped embedding layer
      embed_p: float,  # Embdedding layer dropout probability
  ):
      self.emb, self.embed_p = emb, embed_p
  
imports: from __future__ import annotations
  from ...data.all import *
  from ..core import *
label_desc: Use image node_id 1 to create a new EmbeddingDropout object from inherited base classes: Module with example: obj = EmbeddingDropout(emb, embed_p)