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

unexpected keyword argument 'kernel_initializer' for CudnnLSTM #1

Open
Chunlinx opened this issue Sep 28, 2018 · 1 comment
Open

unexpected keyword argument 'kernel_initializer' for CudnnLSTM #1

Chunlinx opened this issue Sep 28, 2018 · 1 comment

Comments

@Chunlinx
Copy link

Hi,

Thank you for your work. When I try to run your code, I got an error:
Char CNN Encoder..
Traceback (most recent call last):
File "train_acc.py", line 752, in
exp = NLIExperiment(inject_params=None)
File "train_acc.py", line 151, in init
pos_vocab=len(self.pos_index))
File "/home/chunlin/exp/NLI/tf_models/model.py", line 74, in init
self.build_graph()
File "/home/chunlin/exp/NLI/tf_models/model.py", line 1007, in build_graph
self.prepare_inputs()
File "/home/chunlin/exp/NLI/tf_models/model.py", line 832, in prepare_inputs
self.args.cnn_size, self.q1_len)
File "/home/chunlin/exp/NLI/tf_models/model.py", line 707, in _char_cnn
rnn_type='LSTM')
File "/home/chunlin/exp/NLI/tylib/lib/func.py", line 37, in init
1, num_units, kernel_initializer=rnn_init)
TypeError: init() got an unexpected keyword argument 'kernel_initializer'

Can you please tell me why this happend?

@vanzytay
Copy link
Owner

hey, i made this repo from copying the code from my main repo. might have some dependency issue (or I copied a wrong version accidentally). Will fix this in the next couple days and push a fix.

Thanks for letting me now.

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