class_docstr: NMTModel Class
  See :class:`~onmt.models.BaseModel` for options.
class_docstr_tok: ["NMTModel","Class","See",":","class",":","`","~onmt.models.BaseModel","`","for","options","."]
code: def update_dropout(self, dropout, attention_dropout):
      self.encoder.update_dropout(dropout, attention_dropout)
      self.decoder.update_dropout(dropout, attention_dropout)
  
imports: import torch
  import torch.nn
  from glob import glob
label_desc: Use image node_id 3 for calling the NMTModel obj's underlying member method code with example usage: obj.update_dropout(dropout, attention_dropout) without return types