xnn.gnn.models.cgcnn_foundation.convert_checkpoint#
- xnn.gnn.models.cgcnn_foundation.convert_checkpoint(path, dtype=None, atom_features='cgcnn')[source]#
A
CGCNNwith the weights of one of the authors’ checkpoints (*.pth.tar).- Parameters:
path (str or pathlib.Path) – The checkpoint written by the authors’ training script.
dtype (torch.dtype, optional) – Final dtype;
Nonekeeps float32.atom_features (optional) – The element features the model was trained with (see
read_atom_features()); by default the authors’ table.
- Returns:
The converted model, in evaluation mode.
- Return type: