eConvTranspose1d#
- class eConvTranspose1d(in_rep, out_rep, kernel_size=3, basis_expansion='isotypic_expansion', init_scheme='xavier_uniform', **conv1d_kwargs)[source]#
Bases:
ConvTranspose1dChannel-equivariant transposed 1D convolution.
Matches
torch.nn.ConvTranspose1d—inputs(B, in_rep.size, L)to outputs(B, out_rep.size, L_out)— while constraining each kernel slice to lie in \(\operatorname{Hom}_\mathbb{G}(\rho_{\text{in}}, \rho_{\text{out}})\).The layer satisfies the equivariance constraint:
\[\rho_{\text{out}}(g) \mathbf{y}_t = \mathbf{W}^T * (\rho_{\text{in}}(g) \mathbf{x})_t + \mathbf{b}\]where \(*\) denotes transposed convolution.
Kernel DoF are stored as
(kernel_size, dim(Hom_G))and expanded viaGroupHomomorphismBasis; bias exists only if the trivial irrep appears inout_rep.Initialize the constrained transposed convolution.
- Parameters:
in_rep (
Representation) – Channel representation \(\rho_{\text{in}}\) describing input transformation.out_rep (
Representation) – Channel representation \(\rho_{\text{out}}\) describing output transformation.kernel_size (
int, optional) – Spatial kernel size. Defaults to 3.basis_expansion (
typing.Literal, optional) – Basis realization strategy forGroupHomomorphismBasis.init_scheme (
eINIT_SCHEMES, optional) – Initialization passed toinitialize_params(). Defaults to"xavier_uniform".**conv1d_kwargs – Standard
torch.nn.ConvTranspose1darguments (stride, padding, bias, etc.).
- check_equivariance(atol=1e-05, rtol=1e-05)[source]#
Check equivariance under channel actions of the underlying group.