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 gray_box_device option for PytorchModel #159

Merged
merged 5 commits into from
Nov 5, 2024
Merged

Add gray_box_device option for PytorchModel #159

merged 5 commits into from
Nov 5, 2024

Conversation

Robbybp
Copy link
Collaborator

@Robbybp Robbybp commented Nov 5, 2024

Allows evaluating the neural network and its derivatives on a GPU with e.g. add_predictor(...; gray_box = true, gray_box_device = "cuda")

Copy link

codecov bot commented Nov 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (80c0d43) to head (1d9e8f2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #159   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines          519       520    +1     
=========================================
+ Hits           519       520    +1     

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

@odow
Copy link
Collaborator

odow commented Nov 5, 2024

Seems okay for now. We could consider collecting these gray box options into a struct in future if we start proliferating kwargs everywhere?

@odow
Copy link
Collaborator

odow commented Nov 5, 2024

I don't think we can easily test this in CI, so I'm going to merge.

@odow odow merged commit ad57317 into main Nov 5, 2024
7 checks passed
@odow odow deleted the rp/pytorch-device branch November 5, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants