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

support linemod params analysis #24

Merged

Conversation

RunqiuBao
Copy link

support linemod params analysis

Comment on lines 1676 to 1678
std::vector<EnergyMaps> modality_energy_maps;

const size_t nr_modalities = modalities.size();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modality_energy_maps has known fixed size:

Suggested change
std::vector<EnergyMaps> modality_energy_maps;
const size_t nr_modalities = modalities.size();
const size_t nr_modalities = modalities.size();
std::vector<EnergyMaps> modality_energy_maps;
modality_energy_maps.reserve(nr_modalities);

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

applied

@florisatmujin florisatmujin merged commit 1cb2134 into mujin:master Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants