xnn.gnn.fast.painn_kernels#

Triton kernels and autograd function of the PaiNN fast path (see xnn.gnn.fast.painn).

Imported only when the fast path runs, so that triton is needed only there.

Module Attributes

TILE

Values per tile (edges per program times features) and warps per program.

WARPS

Values per tile (edges per program times features) and warps per program.

Functions

message(x, W, direction, v, edge_index)

The fused message block (eq 7 and 8 of the PaiNN paper).

Classes

MessageFunction(*args, **kwargs)

The message block of PaiNN on given x = phi(s) and filters W.

MessageGradFunction(*args, **kwargs)

The backward of MessageFunction (the gradients of x, W, the directions and v for the incoming gradients), differentiable once more.