xnn.gnn.models.matgl_format.matgl_class#
- xnn.gnn.models.matgl_format.matgl_class(path)[source]#
The architecture of a MatGL directory (
"TensorNet","MEGNet", …), orNone.- Parameters:
path (str or pathlib.Path) – The directory, or its
model.jsonorstate.pt.- Returns:
The class of the wrapped model,
Nonewhenpathis not a MatGL directory.- Return type:
str or None