when I try to run "bash train_sentiment_prompt.sh",a error occured.
Traceback (most recent call last):
File "../main.py", line 161, in
main()
File "../main.py", line 150, in main
trainer.train()
File "/home/tjucic/bigdata/mxc/decup/Discriminator-Cooperative-Unlikelihood-Prompt-Tuning-master/trainer.py", line 192, in train
result = self.evaluate(epoch_idx, 'Test')
File "/home/tjucic/bigdata/mxc/decup/Discriminator-Cooperative-Unlikelihood-Prompt-Tuning-master/trainer.py", line 100, in evaluate
pred_ids = self.model.predict(x,musk)
File "/home/tjucic/anaconda3/envs/mxc/lib/python3.6/site-packages/torch/nn/modules/module.py", line 772, in getattr
type(self).name, name))
torch.nn.modules.module.ModuleAttributeError: 'Prompt_tuning' object has no attribute 'predict'
when I try to run "bash train_sentiment_prompt.sh",a error occured. Traceback (most recent call last): File "../main.py", line 161, in
main()
File "../main.py", line 150, in main
trainer.train()
File "/home/tjucic/bigdata/mxc/decup/Discriminator-Cooperative-Unlikelihood-Prompt-Tuning-master/trainer.py", line 192, in train
result = self.evaluate(epoch_idx, 'Test')
File "/home/tjucic/bigdata/mxc/decup/Discriminator-Cooperative-Unlikelihood-Prompt-Tuning-master/trainer.py", line 100, in evaluate
pred_ids = self.model.predict(x,musk)
File "/home/tjucic/anaconda3/envs/mxc/lib/python3.6/site-packages/torch/nn/modules/module.py", line 772, in getattr
type(self).name, name))
torch.nn.modules.module.ModuleAttributeError: 'Prompt_tuning' object has no attribute 'predict'