xnn.gnn.models.cgcnn_foundation.from_foundation#
- xnn.gnn.models.cgcnn_foundation.from_foundation(name='cgcnn-formation-energy-per-atom', dtype=None, cache_dir=None, quiet=False)[source]#
Download (once) and convert one of the authors’ pretrained models.
- Parameters:
name (str, optional) – A key of
FOUNDATION_MODELS, by default the formation energy model.dtype (torch.dtype or str, optional) – Final dtype;
Nonekeeps the checkpoint’s float32.cache_dir (str or pathlib.Path, optional) – Model cache directory (the hub’s default when
None).quiet (bool, optional) – Hide the download progress bars. Default
False.
- Returns:
The converted model, in evaluation mode.
- Return type: