Skip to content

About the GraphormerEncoderLayer and EdgeEncoding  #29

@williamlaiojbk

Description

@williamlaiojbk

Hello! Thanks for your implement. I have noticed that there are some graphormer attention layers in your code(the ones with edge encoding). However, I checked the official code of graphormer and found that the network has only one bias_layer(with edge encoding+sptial encoding) and the rest are regular multi head attention layers.

Besides, I think an important reason for slow is that EdgeEncoding fuction is called many times in the multi head attention, which is unnecessary.

Thanks again for your sharing!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions