scglue.models.glue.GraphDecoder.forward

abstract GraphDecoder.forward(v, eidx, esgn)[source]

Decode graph from vertex latent

Parameters
  • v (Tensor) – Vertex latent (\(n_{vertices} \times n_{features}\))

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

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

Return type

Distribution

Returns

recon – Edge reconstruction distribution (\(n_{edges}\))