xnn.gnn.models.tensornet_foundation.transplant#

xnn.gnn.models.tensornet_foundation.transplant(model, state, species, n_layers, extra=None, skip=())[source]#

Copy MatGL’s weights into model: the same layer names, the embedding rows by atomic number, the 3F outputs of the last scalar layers reordered from per feature to per part.

extra holds the converted weights of a subclass’s own layers; parameters whose names start with a prefix in skip keep their values.

Parameters:
Return type:

None