scglue.models.nn.GraphAttent.forward
- GraphAttent.forward(input, eidx, ewt, esgn)[源代码]
Forward propagation
- 参数:
input (
torch.Tensor
) – Input data (\(n_{vertices} \times n_{features}\))eidx (
torch.Tensor
) – Vertex indices of edges (\(2 \times n_{edges}\))ewt (
torch.Tensor
) – Weight of edges (\(n_{edges}\))esgn (
torch.Tensor
) – Sign of edges (\(n_{edges}\))
- 返回类型:
- 返回:
result – Graph attention result (\(n_{vertices} \times n_{features}\))