sonnet icon indicating copy to clipboard operation
sonnet copied to clipboard

__init__() got an unexpected keyword argument 'w_init'

Open gautica opened this issue 3 years ago • 1 comments

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

gautica avatar Dec 08 '21 17:12 gautica

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).

tomhennigan avatar Dec 09 '21 09:12 tomhennigan