xnn.cnn.models.base.field_dim#

xnn.cnn.models.base.field_dim(fields)[source]#

Number of channels of a stack of fields.

Parameters:

fields (sequence of int) – Multiplicities (m_0, m_1, m_2, ...): m_l fields transforming under the irreducible representation of order l (dimension 2l + 1). A conventional CNN has only m_0 scalar channels.

Returns:

sum_l m_l (2l + 1).

Return type:

int