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

modifying default index API to accept None #1308

Merged
merged 1 commit into from
May 17, 2021

Conversation

parmeet
Copy link
Contributor

@parmeet parmeet commented May 17, 2021

In #1304, we introduced default index. Although, the API can be used to set the value of default index, it did not allow to unset the same. This PR modified the API to accept Optional[int]. This will allow user to unset the default token by passing None.

@parmeet parmeet merged commit ccfba91 into pytorch:master May 17, 2021
@parmeet parmeet deleted the defaultindex branch May 17, 2021 15:19
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