Skip to content

Make torchscript parameter constraints more obvious #3693

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

Merged
merged 3 commits into from
Apr 20, 2021

Conversation

NicolasHug
Copy link
Member

This PR adds a .. note:: directive everywhere we document that torchscript expects a sequence of length 1 for a given parameter.

This might help avoiding the confusion in #3692

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@NicolasHug
Copy link
Member Author

DOC CI was green so I'll merge, thanks for the review!

@NicolasHug NicolasHug merged commit 7dd4912 into pytorch:master Apr 20, 2021
@NicolasHug NicolasHug deleted the note_torchscript branch April 20, 2021 08:04
facebook-github-bot pushed a commit that referenced this pull request May 4, 2021
Reviewed By: NicolasHug

Differential Revision: D28169139

fbshipit-source-id: 4e3917d8c0bdd75e702d18f2b119bd19208a2506
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants