scglue.models.sc.GraphEncoder.forward

GraphEncoder.forward(eidx, enorm, esgn)[source]

Encode graph to vertex latent distribution

Parameters
  • eidx (Tensor) – Vertex indices of edges (\(2 \times n_{edges}\))

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

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

Return type

Normal

Returns

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