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

Allow passing multiple name for registering a value in RegistryMixin #385

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

dbogunowicz
Copy link
Contributor

Feature Description

Allows passing a List[str] to the name argument:

# register with multiple aliases
@Dataset.register(name=["cifar-10-dataset", "cifar-100-dataset"])
class Cifar(Dataset):
    pass

@bfineran bfineran merged commit 1c6ee99 into main Nov 13, 2023
4 checks passed
@bfineran bfineran deleted the feature/damian/add_aliases_registry branch November 13, 2023 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants