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

add model files for globalpolar and WFC #3561

Closed
github-actions bot opened this issue Mar 19, 2024 · 1 comment · Fixed by #3834
Closed

add model files for globalpolar and WFC #3561

github-actions bot opened this issue Mar 19, 2024 · 1 comment · Fixed by #3834

Comments

@github-actions
Copy link

dp = DeepPotential(self.work_dir / "deep_globalpolar.pb")
self.assertIsInstance(
dp, DeepGlobalPolar, msg.format(DeepGlobalPolar, type(dp))

Line: 65

dp = DeepPotential(self.work_dir / "deep_pot.pb")
self.assertIsInstance(dp, DeepPot, msg.format(DeepPot, type(dp)))
# TODO add model files for globalpolar and WFC
# dp = DeepPotential(self.work_dir / "deep_globalpolar.pb")
# self.assertIsInstance(
# dp, DeepGlobalPolar, msg.format(DeepGlobalPolar, type(dp))
# )
# dp = DeepPotential(self.work_dir / "deep_wfc.pb")
# self.assertIsInstance(dp, DeepWFC, msg.format(DeepWFC, type(dp)))

njzjz added a commit to njzjz/deepmd-kit that referenced this issue May 28, 2024
Fix deepmodeling#3561. Fix deepmodeling#3562.

Not sure if some one uses them, but it's good to keep compatibility.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@njzjz njzjz linked a pull request May 28, 2024 that will close this issue
github-merge-queue bot pushed a commit that referenced this issue May 30, 2024
Fix #3561. Fix #3562.

Not sure if some one uses them, but it's good to keep compatibility.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced support for "global_polar" and "wfc" mappings in evaluation
backend.
- Added `output_def` property to define model output for
`DeepGlobalPolar` and `DeepWFC` classes.

- **Bug Fixes**
- Updated test setup to create temporary model files for
`DeepGlobalPolar` and `DeepWFC`.

- **Refactor**
- `DeepGlobalPolar` and `DeepWFC` classes now inherit from
`OldDeepTensor` for better structure and functionality.

- **Tests**
- Enhanced test coverage to include instantiation checks for
`DeepGlobalPolar` and `DeepWFC` objects.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Co-authored-by: Han Wang <92130845+wanghan-iapcm@users.noreply.github.com>
Copy link
Author

Closed in commit 710cad3

mtaillefumier pushed a commit to mtaillefumier/deepmd-kit that referenced this issue Sep 18, 2024
Fix deepmodeling#3561. Fix deepmodeling#3562.

Not sure if some one uses them, but it's good to keep compatibility.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced support for "global_polar" and "wfc" mappings in evaluation
backend.
- Added `output_def` property to define model output for
`DeepGlobalPolar` and `DeepWFC` classes.

- **Bug Fixes**
- Updated test setup to create temporary model files for
`DeepGlobalPolar` and `DeepWFC`.

- **Refactor**
- `DeepGlobalPolar` and `DeepWFC` classes now inherit from
`OldDeepTensor` for better structure and functionality.

- **Tests**
- Enhanced test coverage to include instantiation checks for
`DeepGlobalPolar` and `DeepWFC` objects.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Co-authored-by: Han Wang <92130845+wanghan-iapcm@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

0 participants