Louis-udm / VGCN-BERT

MIT License
121 stars 35 forks source link

What is this line of code's function? Thank you very much. #1

Closed guotong1988 closed 4 years ago

guotong1988 commented 4 years ago

这行代码的作用是?

image

vocab_input=gcn_swop_eye.matmul(words_embeddings).transpose(1,2)

gcn_swop_eye is the gcn one-hot ids. words_embeddings is from the bert ids.

Thank you very much.

@Louis-udm @Xiang-Pan

Louis-udm commented 4 years ago

The graph embedding calculates for every embedding dimension, this is for keeps the embedding dimension size.