xnn.gnn.models.aimnet2_foundation.detect_artifact#
- xnn.gnn.models.aimnet2_foundation.detect_artifact(path)[source]#
Whether
pathis an AIMNet2 artifact file or directory.A
.safetensorsfile, a directory ofconfig.jsonandensemble_<k>.safetensors, or atorch.savefile whose pickle names thestate_dictandmodel_yamlkeys (read from the zip without loading the tensors). Paths that do not exist are not artifacts.