xnn.cnn.fast#

Fast paths of the voxel models (SteerableCNN, CNN3D).

The 3D convolutions of their blocks have a second implementation, conv3d(), which runs cuDNN’s channels-last kernels with its algorithm search; FastPathModule explains the contract and use_fast the choice. AUTO_POLICY and AUTO_POLICY_TRAINING hold where use_fast="auto" takes it.

The correlations of the SphericalCNN have Triton kernels instead, in xnn.cnn.fast.spherical with their own policies.

Module Attributes

AUTO_POLICY

Edge counts above which use_fast="auto" takes the fast convolutions in evaluation mode (energy and forces).

AUTO_POLICY_TRAINING

The same for training mode (a step with a force loss, second derivatives included).

Modules

conv

3D convolutions on cuDNN's channels-last kernels, with its algorithm search.

spherical

Fast path of the SphericalCNN correlations (Triton kernels).

spherical_kernels

Triton kernels of the SphericalCNN fast path (see xnn.cnn.fast.spherical).