espnet.optimizer.chainer.SGDFactory
Less than 1 minute
espnet.optimizer.chainer.SGDFactory
class espnet.optimizer.chainer.SGDFactory
Bases: OptimizerFactoryInterface
SGD factory.
static add_arguments(parser: ArgumentParser) → ArgumentParser
Register args.
static from_args(target, args: Namespace)
Initialize optimizer from argparse Namespace.
- Parameters:
- target – for pytorch model.parameters(), for chainer model
- args (argparse.Namespace) – parsed command-line args