Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants