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

pt: remove env.DEVICE in all forward functions #3330

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented Feb 24, 2024

Ensure the saved JIT model can run on both CPUs and GPUs.

Ensure the saved model can run on both CPUs and GPUs.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
source/tests/pt/model/test_deeppot.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Feb 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.52%. Comparing base (649fdca) to head (4f7b1c6).
Report is 4 commits behind head on devel.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3330      +/-   ##
==========================================
+ Coverage   75.41%   75.52%   +0.11%     
==========================================
  Files         406      408       +2     
  Lines       34106    34277     +171     
  Branches     1604     1600       -4     
==========================================
+ Hits        25720    25888     +168     
- Misses       7525     7528       +3     
  Partials      861      861              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Co-authored-by: Chun Cai <amoycaic@gmail.com>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@wanghan-iapcm wanghan-iapcm added this pull request to the merge queue Feb 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 26, 2024
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@njzjz njzjz enabled auto-merge February 26, 2024 14:16
@njzjz njzjz added this pull request to the merge queue Feb 26, 2024
Merged via the queue into deepmodeling:devel with commit a3f4a67 Feb 26, 2024
48 checks passed
@njzjz njzjz deleted the pt-remove-env-device branch February 26, 2024 15:05
@njzjz njzjz mentioned this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants