vanzytay / EMNLP2018_NLI

Repository for NLI models (EMNLP 2018)
GNU General Public License v3.0
61 stars 10 forks source link

unexpected keyword argument 'kernel_initializer' for CudnnLSTM #1

Open Chunlinx opened 6 years ago

Chunlinx commented 6 years ago

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 commented 6 years ago

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.