-
Notifications
You must be signed in to change notification settings - Fork 526
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 converting models generated in v1.3 to 2.0 compatibility #725
Conversation
By the way: Compatability should be compatibility
Codecov Report
@@ Coverage Diff @@
## devel #725 +/- ##
==========================================
- Coverage 74.30% 74.07% -0.23%
==========================================
Files 82 78 -4
Lines 6534 6561 +27
==========================================
+ Hits 4855 4860 +5
- Misses 1679 1701 +22
Continue to review full report at Codecov.
|
@amcadmus I've changed the implementation: Now users can converting models directly using v2.0. There's no necessity to install the old version. |
@@ -25,6 +25,26 @@ REGISTER_OP("ProdEnvMatA") | |||
.Output("nlist: int32"); | |||
// only sel_a and rcut_r uesd. | |||
|
|||
// an alias of ProdEnvMatA -- Compatible with v1.3 | |||
REGISTER_OP("DescrptSeA") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to register DescrptSeA
? the op name has changed to ProdEnvMatA
by convert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to load the old graph first when executing convert
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A smart approach to register different ops with the same class ProdEnvMatA
…pmodeling#725) * add v1.3 compatibility * remove TestModelMajorCompatability as compatibility was added By the way: Compatability should be compatibility * Also remove TestModelMinorCompatability * Update test_deeppot_a.py * Revert "Update test_deeppot_a.py" This reverts commit a03b5ee. * Revert "Also remove TestModelMinorCompatability" This reverts commit 11fdd5c. * Revert "remove TestModelMajorCompatability as compatibility was added" This reverts commit 40dd807. * revert allowing 0.0 model * convert from model 1.3 to 2.0 * fix .gitignore
…ath expression Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Jinzhe Zeng <[email protected]>
…ath expression Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Jinzhe Zeng <[email protected]>
…ath expression Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Jinzhe Zeng <[email protected]>
(Next plan: add v1.2 compatibility)