atulkum / pointer_summarizer

pytorch implementation of "Get To The Point: Summarization with Pointer-Generator Networks"
Apache License 2.0
907 stars 242 forks source link

TypeError: __init__() got an unexpected keyword argument 'initial_accumulator_value' #15

Closed pengzhi123 closed 6 years ago

pengzhi123 commented 6 years ago

training log: max_size of vocab was specified as 50000; we now have 50000 words. Stopping reading. Finished constructing vocabulary of 50000 total words. Last word added: chaudhary Traceback (most recent call last): File "training_ptr_gen/train.py", line 150, in train_processor.trainIters(config.max_iterations, args.model_file_path) File "training_ptr_gen/train.py", line 121, in trainIters iter, running_avg_loss = self.setup_train(model_file_path) File "training_ptr_gen/train.py", line 57, in setup_train self.optimizer = Adagrad(params, lr=initial_lr, initial_accumulator_value=config.adagrad_init_acc) TypeError: init() got an unexpected keyword argument 'initial_accumulator_value' i use pytorch0.3, tensorflow1.2. Please help. Thanks.

atulkum commented 6 years ago

Pytorch 0.4 has the required changes. You should use that.

pengzhi123 commented 6 years ago

Pytorch 0.4 has the required changes. You should use that.

OK, thanks. I'll try.