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

What happen when you have duplicate class name to register? #51

Closed
sidoki opened this issue May 14, 2019 · 2 comments
Closed

What happen when you have duplicate class name to register? #51

sidoki opened this issue May 14, 2019 · 2 comments

Comments

@sidoki
Copy link

sidoki commented May 14, 2019

Let's say you register following classes:

@registry.register_model("lorra")
class LoRRA(Pythia):
     ...


@registry.register_model("lorra")
class LoRRA_mod(Pythia):
     ...

i assume the class LORRA_mod will override class LoRRA. is my assumption correct?

@apsdehal
Copy link
Contributor

Yup. That is correct.

@sidoki
Copy link
Author

sidoki commented May 14, 2019

ok thanks @apsdehal for the confirmation!

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

No branches or pull requests

2 participants