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 (withpos_input), the element dense layer and, per convolution, its first dense layer and (withnormalization) the affine parameters of its two batch normalizations. The constants follow: the positions (withoutpos_input), the cells(B, 3, 3)(used withperiodic), the integer image shifts of the bonds, the neighbor of every bond (mper 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 withnormalization, four running statistics per convolution. Returns the mean atom features of every crystal, and in training mode withnormalizationthe batch means and variances of every batch normalization.