sonnet
sonnet copied to clipboard
__init__() got an unexpected keyword argument 'w_init'
I got this error when I try to create a instance with initializers. This error comes from sonnet.nets.MLP . Any solutions? thanks
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).