xnn.gnn.models.qet_foundation.convert_directory#
- xnn.gnn.models.qet_foundation.convert_directory(path, dtype=None)[source]#
Convert a MatGL QET directory into xnn’s QET.
- Parameters:
path (str or pathlib.Path) – The directory of
model.jsonandstate.pt(or either file in it).dtype (torch.dtype, optional) – The dtype the model is built in, by default the checkpoint’s.
- Returns:
The
QETand theConfigthat rebuilds it.- Return type:
- Raises:
NotImplementedError – For an architecture outside the converted ones (see
convert_directory(), and a magnetic-moment head).ValueError – When the checkpoint’s fixed charge widths are not the covalent radii.