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.json and state.pt (or either file in it).

  • dtype (torch.dtype, optional) – The dtype the model is built in, by default the checkpoint’s.

Returns:

The QET and the Config that rebuilds it.

Return type:

tuple

Raises: