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

Fix bug in preprocess_shared_params when using non-zero share level #3615

Merged
merged 1 commit into from
Mar 27, 2024
Merged
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 deepmd/pt/utils/multi_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
type_map_keys.append(key_in_dict)
else:
if shared_key not in shared_links:
class_name = get_class_name(shared_type, shared_dict[key_in_dict])
class_name = get_class_name(shared_type, shared_dict[shared_key])

Check warning on line 118 in deepmd/pt/utils/multi_task.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/utils/multi_task.py#L118

Added line #L118 was not covered by tests
shared_links[shared_key] = {"type": class_name, "links": []}
link_item = {
"model_key": model_key,
Expand Down