wanyao1992 / code_summarization_public

source code for 'Improving automatic source code summarization via deep reinforcement learning'
77 stars 30 forks source link

Error while training the Hybrid Model: Function CatBackward returned an invalid gradient at index 1 - got [85, 1, 512] but expected shape compatible with [57, 1, 512] failed. #5

Open sawan16 opened 4 years ago

sawan16 commented 4 years ago

### Run time Log: python a2c-train.py -data dataset/train/processed_all.train.pt -save_dir dataset//result/ -embedding_w2v dataset/train/ -start_reinforce 10 -end_epoch 30 -critic_pretrain_epochs 10 -data_type hybrid -has_attn 1 -gpus 0 Start...

hadhe145 commented 2 years ago

I have met the same problem, is there any solution for this?