Fix torch.min docs#36319
Closed
zou3519 wants to merge 1 commit intogh/zou3519/244/basefrom
Closed
Conversation
On the way to resolving #35216. This is a fix for just the master branch but once this goes in, I'll send a cherry-pick to release/1.5 The problem is that we were not calling `format` on a string that had templates (e.g., '{input}', '{dim}'). This change makes it so that we call format on the entire docstring for `torch.min`. Test Plan: - The `torch.max` docs are OK: https://pytorch.org/docs/master/torch.html#torch.max and don't need changing. - `torch.min` docs, before this change: see second screenshot in #35216. - after this change: <Insert link here on github> [ghstack-poisoned]
zou3519
added a commit
that referenced
this pull request
Apr 9, 2020
On the way to resolving #35216. This is a fix for just the master branch but once this goes in, I'll send a cherry-pick to release/1.5 The problem is that we were not calling `format` on a string that had templates (e.g., '{input}', '{dim}'). This change makes it so that we call format on the entire docstring for `torch.min`. Test Plan: - The `torch.max` docs are OK: https://pytorch.org/docs/master/torch.html#torch.max and don't need changing. - `torch.min` docs, before this change: see second screenshot in #35216. - after this change: <Insert link here on github> ghstack-source-id: b3bb4bc Pull Request resolved: #36319
gchanan
approved these changes
Apr 9, 2020
💊 CircleCI build failures summary and remediationsAs of commit ca13a48 (more details on the Dr. CI page): ✅ None of the build failures appear to be your fault 💚
❄️ 1 tentatively flaky failure1 failure tentatively classified as flaky but have not triggered reruns to confirm:
|
zou3519
added a commit
to zou3519/pytorch
that referenced
this pull request
Apr 9, 2020
Summary: Pull Request resolved: pytorch#36319 On the way to resolving pytorch#35216. This is a fix for just the master branch but once this goes in, I'll send a cherry-pick to release/1.5 The problem is that we were not calling `format` on a string that had templates (e.g., '{input}', '{dim}'). This change makes it so that we call format on the entire docstring for `torch.min`. Test Plan: - The `torch.max` docs are OK: https://pytorch.org/docs/master/torch.html#torch.max and don't need changing. - `torch.min` docs, before this change: see second screenshot in pytorch#35216. - after this change: <Insert link here on github>  Differential Revision: D20946702 Pulled By: zou3519 fbshipit-source-id: a1a28707e41136a9bb170c8a4191786cf037a0c2
Contributor
ashishfarmer
pushed a commit
to ashishfarmer/pytorch
that referenced
this pull request
Apr 13, 2020
Summary: Pull Request resolved: pytorch#36319 On the way to resolving pytorch#35216. This is a fix for just the master branch but once this goes in, I'll send a cherry-pick to release/1.5 The problem is that we were not calling `format` on a string that had templates (e.g., '{input}', '{dim}'). This change makes it so that we call format on the entire docstring for `torch.min`. Test Plan: - The `torch.max` docs are OK: https://pytorch.org/docs/master/torch.html#torch.max and don't need changing. - `torch.min` docs, before this change: see second screenshot in pytorch#35216. - after this change: <Insert link here on github>  Differential Revision: D20946702 Pulled By: zou3519 fbshipit-source-id: a1a28707e41136a9bb170c8a4191786cf037a0c2
gchanan
pushed a commit
that referenced
this pull request
Apr 13, 2020
Summary: Pull Request resolved: #36319 On the way to resolving #35216. This is a fix for just the master branch but once this goes in, I'll send a cherry-pick to release/1.5 The problem is that we were not calling `format` on a string that had templates (e.g., '{input}', '{dim}'). This change makes it so that we call format on the entire docstring for `torch.min`. Test Plan: - The `torch.max` docs are OK: https://pytorch.org/docs/master/torch.html#torch.max and don't need changing. - `torch.min` docs, before this change: see second screenshot in #35216. - after this change: <Insert link here on github>  Differential Revision: D20946702 Pulled By: zou3519 fbshipit-source-id: a1a28707e41136a9bb170c8a4191786cf037a0c2
laurentdupin
pushed a commit
to laurentdupin/pytorch
that referenced
this pull request
Apr 24, 2026
Summary: Pull Request resolved: pytorch#36319 On the way to resolving pytorch#35216. This is a fix for just the master branch but once this goes in, I'll send a cherry-pick to release/1.5 The problem is that we were not calling `format` on a string that had templates (e.g., '{input}', '{dim}'). This change makes it so that we call format on the entire docstring for `torch.min`. Test Plan: - The `torch.max` docs are OK: https://pytorch.org/docs/master/torch.html#torch.max and don't need changing. - `torch.min` docs, before this change: see second screenshot in pytorch#35216. - after this change: <Insert link here on github>  Differential Revision: D20946702 Pulled By: zou3519 fbshipit-source-id: a1a28707e41136a9bb170c8a4191786cf037a0c2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack:
torch.mindocs #36319 Fixtorch.mindocsOn the way to resolving #35216.
This is a fix for just the master branch but once this goes in,
I'll send a cherry-pick to release/1.5
The problem is that we were not calling
formaton a string that hadtemplates (e.g., '{input}', '{dim}'). This change makes it so that we
call format on the entire docstring for
torch.min.Test Plan:
torch.maxdocs are OK:https://pytorch.org/docs/master/torch.html#torch.max and don't need
changing.
torch.mindocs, before this change: see second screenshot in API doc for torch.max/min is broken #35216.Differential Revision: D20946702