CCChenhao997/DualGCN-ABSA

Issues in dualgcn_bert.py

YiTangJ opened this issue · 1 comments

Hi bro, when I train the model: dualgcn_bert, there has an error at line "adj_ag /= self.attention_heads"
image

I got the following RuntimeError:
RuntimeError: Output 0 of SqueezeBackward1 is a view and is being modified inplace. This view is an output of a function that returns multiple views. Inplace operators on such views is forbidden. You should replace the inplace operation by an out-of-place one.

How do I fix it?

Thx!

adj_ag = adj_ag / self.attention_heads