Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docs): navigation with left/right arrow keys #1726

Merged
merged 1 commit into from
Mar 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
"collapse_navigation": False,
"display_version": True,
"logo_only": True,
"navigation_with_keys": True,
}

html_logo = "_templates/_static/img/ignite_logo.svg"
Expand Down
2 changes: 1 addition & 1 deletion ignite/contrib/handlers/lr_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def attach(

to_save = {"model": model, "optimizer": optimizer}
with lr_finder.attach(trainer, to_save=to_save) as trainer_with_lr_finder:
trainer_with_lr_finder.run(dataloader)`
trainer_with_lr_finder.run(dataloader)

Args:
trainer: lr_finder is attached to this trainer. Please, keep in mind that all attached handlers
Expand Down
2 changes: 1 addition & 1 deletion ignite/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def apply_to_type(

def to_onehot(indices: torch.Tensor, num_classes: int) -> torch.Tensor:
"""Convert a tensor of indices of any shape `(N, ...)` to a
tensor of one-hot indicators of shape `(N, num_classes, ...) and of type uint8. Output's device is equal to the
tensor of one-hot indicators of shape `(N, num_classes, ...)` and of type uint8. Output's device is equal to the
input's device`.

Args:
Expand Down