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

__init__() got an unexpected keyword argument 'w_init' #225

Open
gautica opened this issue Dec 8, 2021 · 1 comment
Open

__init__() got an unexpected keyword argument 'w_init' #225

gautica opened this issue Dec 8, 2021 · 1 comment

Comments

@gautica
Copy link

gautica commented Dec 8, 2021

I got this error when I try to create a instance with initializers. This error comes from sonnet.nets.MLP . Any solutions? thanks

@tomhennigan
Copy link
Collaborator

Hi @gautica , it seems to work correctly for me: https://colab.research.google.com/gist/tomhennigan/f45c0db3ab5b7f271dafbeb4ef2287b1/example-of-using-w_init-with-sonnet-mlp.ipynb

Please make sure that you are using TensorFlow 2 and Sonnet 2 since this is what our documentation refers to (the API has changed vs. TF1/Sonnet 1).

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