Skip to content

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

Merged
njzjz merged 3 commits intodeepmodeling:develfrom
njzjz:pt-remove-env-device
Feb 26, 2024
Merged

pt: remove env.DEVICE in all forward functions#3330
njzjz merged 3 commits intodeepmodeling:develfrom
njzjz:pt-remove-env-device

Conversation

@njzjz
Copy link
Copy Markdown
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>
Comment thread source/tests/pt/model/test_deeppot.py Outdated
@codecov
Copy link
Copy Markdown

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
@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