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, the3Foutputs of the last scalar layers reordered from per feature to per part.extraholds the converted weights of a subclass’s own layers; parameters whose names start with a prefix inskipkeep their values.