zoo.examples.orca.learn.horovod package¶
Submodules¶
zoo.examples.orca.learn.horovod.pytorch_estimator module¶
-
class
zoo.examples.orca.learn.horovod.pytorch_estimator.LinearDataset(a, b, size=1000)[source]¶ Bases:
torch.utils.data.dataset.Datasety = a * x + b
-
zoo.examples.orca.learn.horovod.pytorch_estimator.model_creator(config)[source]¶ Returns a torch.nn.Module object.
-
zoo.examples.orca.learn.horovod.pytorch_estimator.optimizer_creator(model, config)[source]¶ Returns optimizer defined upon the model parameters.
-
zoo.examples.orca.learn.horovod.pytorch_estimator.scheduler_creator(optimizer, config)[source]¶ Returns a learning rate scheduler wrapping the optimizer. You will need to set
TorchTrainer(scheduler_step_freq="epoch")for the scheduler to be incremented correctly. If using a scheduler for validation loss, be sure to calltrainer.update_scheduler(validation_loss).