Layers module

Layer module.

class MARBLE.layers.Diffusion(tau0=0.0)[source]

Diffusion with learned t.

initialise.

forward(x, L, Lc=None, method='spectral')[source]

Forward.

class MARBLE.layers.AnisoConv(**kwargs)[source]

Anisotropic Convolution

Initialize.

forward(x, kernels)[source]

Forward.

message_and_aggregate(K_t, x)[source]

Message passing step. If K_t is a txs matrix (s sources, t targets), do matrix multiplication K_t@x, broadcasting over column features. If K_t is a t*dimxs*dim matrix, in case of manifold computations, then first reshape, assuming that the columns of x are ordered as [dx1/du, x1/dv, …, dx2/du, dx2/dv, …].

class MARBLE.layers.InnerProductFeatures(C, D)[source]

Compute scaled inner-products between channel vectors.

Input: (V x C*D) vector of (V x n_i) list of vectors with sum_in_i = C*D Output: (VxC) dot products

Initialize internal Module state, shared by both nn.Module and ScriptModule.

reset_parameters()[source]

Reset parameters.

forward(x)[source]

Forward.