CCChenhao997 / DualGCN-ABSA

Dual Graph Convolutional Networks for Aspect-based Sentiment Analysis
MIT License
133 stars 29 forks source link

Issues in dualgcn_bert.py #4

Closed YiTangJ closed 3 years ago

YiTangJ commented 3 years ago

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!

GYPgalaxy commented 1 year ago

adj_ag = adj_ag / self.attention_heads