scglue.models.sc.GraphEncoder.forward

GraphEncoder.forward(eidx, enorm, esgn)[源代码]

Encode graph to vertex latent distribution

参数:
  • eidx (torch.Tensor) – Vertex indices of edges (\(2 \times n_{edges}\))

  • enorm (torch.Tensor) – Normalized weight of edges (\(n_{edges}\))

  • esgn (torch.Tensor) – Sign of edges (\(n_{edges}\))

返回类型:

torch.distributions.normal.Normal

返回:

v – Vertex latent distribution (\(n_{vertices} \times n_{features}\))