Skip to content

Fix quant modelproto error#23322

Merged
xiaoyu-work merged 1 commit intomainfrom
xiaoyu/fix-quant
Jan 11, 2025
Merged

Fix quant modelproto error#23322
xiaoyu-work merged 1 commit intomainfrom
xiaoyu/fix-quant

Conversation

@xiaoyu-work
Copy link
Contributor

Description

Fixing issue. Saving a ModelProto with save_as_external_data=True updates its metadata, which could lead to issues later if not managed carefully. Using a deepcopy to prevent such problems.

Copy link
Member

@yuslepukhin yuslepukhin left a comment

Choose a reason for hiding this comment

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

:shipit:

@xiaoyu-work xiaoyu-work merged commit 6e5efb5 into main Jan 11, 2025
98 checks passed
@xiaoyu-work xiaoyu-work deleted the xiaoyu/fix-quant branch January 11, 2025 01:48
guschmue pushed a commit that referenced this pull request Jan 12, 2025
### Description
Fixing
[issue](#23268 (comment)).
Saving a `ModelProto` with `save_as_external_data=True` updates its
metadata, which could lead to issues later if not managed carefully.
Using a deepcopy to prevent such problems.
ashrit-ms pushed a commit that referenced this pull request Mar 17, 2025
### Description
Fixing
[issue](#23268 (comment)).
Saving a `ModelProto` with `save_as_external_data=True` updates its
metadata, which could lead to issues later if not managed carefully.
Using a deepcopy to prevent such problems.
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