Open rootofmylife opened 3 years ago
Recently, I have found a way to work around above problem. The solution is to change lal_combine_as_self
param to True
(I made this change in main.py
file at line 81).
Why I know this? When I debugged code at the line number 1379 in KM_parser.py
file, I tried to use hparams.d_model
and the error did not occur.
annotation_dim = ((label_vocab.size - 2) * self.lal_d_proj) if (self.use_lal and not self.lal_combine_as_self) else hparams.d_model
But for me, I do not like this solution because it decreases accuracy so much, at least in my task. So use it carefully
Hi, thank you for your work.
I tried to your code with train data and it worked fine. But when I changed to other kind of data, or even if I used dev data instead of train data. It got RuntimeError: mat1 and mat2 shapes cannot be multiplied
I also refactor some parts of code, but it still only works on your train data, not with others as I mentioned above.
Hope you could give me some glues to overcome this problem.
Full log here
Thank you.