-
Notifications
You must be signed in to change notification settings - Fork 524
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
Merge TF and PT CLI #3187
Merge TF and PT CLI #3187
Conversation
Also, avoid import from deepmd.tf in deepmd.utils.argcheck. Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
@@ -56,7 +56,7 @@ | |||
|
|||
return super().__new__(DeepPotTF) | |||
elif backend == DPBackend.PyTorch: | |||
from deepmd_pt.infer.deep_eval import DeepPot as DeepPotPT | |||
from deepmd.pt.infer.deep_eval import DeepPot as DeepPotPT |
Check notice
Code scanning / CodeQL
Cyclic import Note
deepmd.pt.infer.deep_eval
from deepmd.main import ( | ||
parse_args, | ||
) |
Check notice
Code scanning / CodeQL
Cyclic import Note
deepmd.main
elif args.pt: | ||
args.backend = "pytorch" | ||
if args.backend == "tensorflow": | ||
from deepmd.tf.entrypoints.main import main as deepmd_main |
Check notice
Code scanning / CodeQL
Cyclic import Note
deepmd.tf.entrypoints.main
if args.backend == "tensorflow": | ||
from deepmd.tf.entrypoints.main import main as deepmd_main | ||
elif args.backend == "pytorch": | ||
from deepmd.pt.entrypoints.main import main as deepmd_main |
Check notice
Code scanning / CodeQL
Cyclic import Note
deepmd.pt.entrypoints.main
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## devel #3187 +/- ##
==========================================
- Coverage 74.29% 74.25% -0.05%
==========================================
Files 343 343
Lines 31638 31653 +15
Branches 1592 1592
==========================================
- Hits 23506 23504 -2
- Misses 7207 7224 +17
Partials 925 925 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Just merge in form. Several options or subcommands are only supported by TensorFlow or PyTorch.
Also, avoid import from
deepmd.tf
indeepmd.utils.argcheck
.