xnn.gnn.fast.cgcnn.network_function#

xnn.gnn.fast.cgcnn.network_function(n_conv, normalization, training, residual_activation, gamma, eps, pos_input, periodic, single)[source]#

The network up to the pooling as one function of its tensors.

f([pos,] emb_w, emb_b, *conv_params, [pos,] cell, shifts, src, table, z, centers, batch, n_atoms, *running). The differentiated inputs come first: the positions (with pos_input), the element dense layer and, per convolution, its first dense layer and (with normalization) the affine parameters of its two batch normalizations. The constants follow: the positions (without pos_input), the cells (B, 3, 3) (used with periodic), the integer image shifts of the bonds, the neighbor of every bond (m per atom, grouped by atom), the element table and atomic numbers, the Gaussian centers, the crystal of every atom, the atoms per crystal and, in evaluation mode with normalization, four running statistics per convolution. Returns the mean atom features of every crystal, and in training mode with normalization the batch means and variances of every batch normalization.

Parameters:
Return type:

Callable