Closed YunQingYangZzu closed 1 year ago
Hi, we apologize for the inconvenience caused by the previous code. To resolve the issue, please add the following code snippet:
else:
input_atom = self.W_i_atom(f_atoms) # num_atoms x hidden_size
We have also updated the code on GitHub to reflect this change. Thank you for bringing this to our attention! Please feel free to contact me if you have any further questions.
Thank you very much for your reply and solved my problem
Hi, I'm having some problems with pretrain.I tried following the README instructions.
python pretrain.py --exp_name 'pre-train' --exp_id 1 --step pretrain
But there is an error during the runI checked the code of CMPN.py and found that if
arg.step="pretrain"
is not declared forinput_atom
when the forward function is executed.So an error occurs when executinginput_atom = self.act_func(input_atom)
I hope you can help me solve this problem, thank you very much!