espnet.optimizer package¶
Initialize sub package.
espnet.optimizer.pytorch¶
PyTorch optimizer builders.
-
class
espnet.optimizer.pytorch.
AdadeltaFactory
[source]¶ Bases:
espnet.optimizer.factory.OptimizerFactoryInterface
Adadelta factory.
-
class
espnet.optimizer.pytorch.
AdamFactory
[source]¶ Bases:
espnet.optimizer.factory.OptimizerFactoryInterface
Adam factory.
-
class
espnet.optimizer.pytorch.
SGDFactory
[source]¶ Bases:
espnet.optimizer.factory.OptimizerFactoryInterface
SGD factory.
espnet.optimizer.factory¶
Import optimizer class dynamically.
-
class
espnet.optimizer.factory.
OptimizerFactoryInterface
[source]¶ Bases:
object
Optimizer adaptor.
-
static
add_arguments
(parser: argparse.ArgumentParser) → argparse.ArgumentParser[source]¶ Register args.
-
static
-
espnet.optimizer.factory.
dynamic_import_optimizer
(name: str, backend: str) → espnet.optimizer.factory.OptimizerFactoryInterface[source]¶ Import optimizer class dynamically.
- Parameters:
name (str) – alias name or dynamic import syntax module:class
backend (str) – backend name e.g., chainer or pytorch
- Returns:
OptimizerFactoryInterface or FunctionalOptimizerAdaptor
espnet.optimizer.chainer¶
Chainer optimizer builders.
-
class
espnet.optimizer.chainer.
AdadeltaFactory
[source]¶ Bases:
espnet.optimizer.factory.OptimizerFactoryInterface
Adadelta factory.
-
class
espnet.optimizer.chainer.
AdamFactory
[source]¶ Bases:
espnet.optimizer.factory.OptimizerFactoryInterface
Adam factory.
-
class
espnet.optimizer.chainer.
SGDFactory
[source]¶ Bases:
espnet.optimizer.factory.OptimizerFactoryInterface
SGD factory.
espnet.optimizer.__init__¶
Initialize sub package.
espnet.optimizer.parser¶
Common optimizer default config for multiple backends.