Draft
Conversation
Luthaf
reviewed
Mar 12, 2026
| auto requested_inputs = mta_data->model->run_method("requested_inputs"); | ||
| for (const auto& ivalue: requested_inputs.toList()) { | ||
| auto options = ivalue.get().toCustomClass<metatomic_torch::ModelOutputHolder>(); | ||
| const auto& quantity = options->quantity().c_str(); |
Member
There was a problem hiding this comment.
this should be the ivalue.key, not the physical quantity
| std::vector<double> peratom_cache_; | ||
| std::vector<double> peratom_array_cache_; | ||
| int n_samples = 0; | ||
| int n_components = 0; |
Member
There was a problem hiding this comment.
n_properties as well or can this be resized during the simulation?
| } else { | ||
| error->all(FLERR, "the model requested an unsupported dtype '{}'", mta_data->capabilities->dtype()); | ||
| } | ||
| auto system = this->system_adaptor->system_from_lmp( |
Member
There was a problem hiding this comment.
this should deal with requested inputs directly
| auto output_components = output_block->components(); | ||
| ResultKind kind = RESULT_NONE; | ||
| n_samples = output.size(0); | ||
| n_components = output.size(1); |
Member
There was a problem hiding this comment.
the output might not have components, or more than one component dimension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WIP
Post Submission Checklist