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

[benchmarks] Add default value to move_to_device. #7080

Merged
merged 1 commit into from
May 20, 2024

Conversation

ysiraichi
Copy link
Collaborator

@ysiraichi ysiraichi commented May 18, 2024

PR #7013 broke the benchmarking scripts for XLA:CUDA by adding a new parameter to move_to_device function, not modifying a few call-sites. This PR fixes this by adding a default value.

Before:

def move_to_device(item, device, torch_xla2):
     ...

After:

def move_to_device(item, device, torch_xla2=False):
     ...

cc @miladm @zpcore @vanbasten23

Copy link
Collaborator

@zpcore zpcore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@zpcore zpcore merged commit 8990f1b into master May 20, 2024
20 checks passed
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.

2 participants