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

About Activation visibility in Config implementors #110

Closed
lerouxrgd opened this issue Dec 10, 2020 · 3 comments
Closed

About Activation visibility in Config implementors #110

lerouxrgd opened this issue Dec 10, 2020 · 3 comments

Comments

@lerouxrgd
Copy link
Contributor

Hi again,

It looks like Config implementors, surch as BertConfig, have a public Activation field but this enum is not public.
It is thus impossible to store it as a field in a struct (its type must be known and accessible).

I feel that publicly exposed types should be public, what do you think ?

Also, do you think BertConfig and its friends could implement Clone ? It seems that nothing is preventing it (Activation is clonable).

@guillaume-be
Copy link
Owner

Hi @lerouxrgd

Sounds reasonable - pushing proposed related changes via #111

@lerouxrgd
Copy link
Contributor Author

Thank you for the quick action again !

Actually in your commit Activation is public within common which is not public. So in the end it is still not public.

@lerouxrgd
Copy link
Contributor Author

Everything is fine with your last commit, thank you again !

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