class_docstr: Adadelta factory.
class_docstr_tok: ["Adadelta","factory","."]
docstr: Initialize optimizer from argparse Namespace.
  
  Args:
      target: for pytorch `model.parameters()`,
          for chainer `model`
      args (argparse.Namespace): parsed command-line args
docstr_tok: ["Initialize","optimizer","from","argparse","Namespace",".","Args",":","target",":","for","pytorch","`","model.parameters","(",")","`",",","for","chainer","`","model","`","args","(","argparse.Namespace",")",":","parsed","command-line","args"]
code: def from_args(target, args: argparse.Namespace):
      """Initialize optimizer from argparse Namespace.
  
      Args:
          target: for pytorch `model.parameters()`,
              for chainer `model`
          args (argparse.Namespace): parsed command-line args
  
      """
      opt = chainer.optimizers.AdaDelta(
          rho=args.rho,
          eps=args.eps,
      )
      opt.setup(target)
      opt.add_hook(WeightDecay(args.weight_decay))
      return opt
  
file_path: espnet/espnet/optimizer/chainer.py
imports: import argparse
  import chainer
  from chainer.optimizer_hooks import WeightDecay
  from espnet.optimizer.factory import OptimizerFactoryInterface
  from espnet.optimizer.parser import adadelta, adam, sgd
label_desc: Use image node_id 2 for calling the AdadeltaFactory obj's underlying member method code with example usage: obj.from_args(target, args) and returns: opt