Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added cli for mu alpha prediction and a bugfix in model #643

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mace/modules/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def forward(
data["node_attrs"].requires_grad_(True)
data["positions"].requires_grad_(True)
num_graphs = data["ptr"].numel() - 1
num_atoms = data.ptr[1:] - data.ptr[:-1]
num_atoms = data["ptr"][1:] - data["ptr"][:-1]

# Embeddings
node_feats = self.node_embedding(data["node_attrs"])
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ console_scripts =
mace_active_learning_md = mace.cli.active_learning_md:main
mace_create_lammps_model = mace.cli.create_lammps_model:main
mace_eval_configs = mace.cli.eval_configs:main
mace_eval_mu_alpha = mace.cli.eval_mu_alpha:main
mace_plot_train = mace.cli.plot_train:main
mace_run_train = mace.cli.run_train:main
mace_prepare_data = mace.cli.preprocess_data:main
Expand All @@ -50,4 +51,4 @@ dev =
pre-commit
pytest
pylint
schedulefree = schedulefree
schedulefree = schedulefree
Loading