Skip to content

Commit

Permalink
Nit: update docs (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 authored Jun 18, 2018
1 parent 3e0d9c0 commit e19086c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ignite/engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ def create_supervised_trainer(model, optimizer, loss_fn, device=None):
Factory function for creating a trainer for supervised models
Args:
model (torch.nn.Module): the model to train
optimizer (torch.optim.Optimizer): the optimizer to use
model (`torch.nn.Module`): the model to train
optimizer (`torch.optim.Optimizer`): the optimizer to use
loss_fn (torch.nn loss function): the loss function to use
device (optional): device type specification (default: None)
device (str, optional): device type specification (default: None).
Applies to both model and batches.
Returns:
Expand All @@ -44,9 +44,9 @@ def create_supervised_evaluator(model, metrics={}, device=None):
Factory function for creating an evaluator for supervised models
Args:
model (torch.nn.Module): the model to train
metrics (dict of str: Metric): a map of metric names to Metrics
device (optional): device type specification (default: None)
model (`torch.nn.Module`): the model to train
metrics (dict of str - :class:`ignite.metrics.Metric`): a map of metric names to Metrics
device (str, optional): device type specification (default: None).
Applies to both model and batches.
Returns:
Expand Down

0 comments on commit e19086c

Please sign in to comment.