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

fix multiple device bug #321

Merged
merged 11 commits into from
Nov 14, 2024
Merged

fix multiple device bug #321

merged 11 commits into from
Nov 14, 2024

Conversation

wenhuach21
Copy link
Contributor

No description provided.

@@ -906,7 +906,7 @@ def compile_func_on_hpu(func):


def compile_func_on_cuda_or_cpu(func, enable_torch_compile):
if enable_torch_compile or TORCH_VERSION_AT_LEAST_2_6_PRE_RELEASE:
if enable_torch_compile or (TORCH_VERSION_AT_LEAST_2_6_PRE_RELEASE and enable_torch_compile!=False):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can it be simplified to 'if enable_torch_compile' ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

when enable_torch_compile is set to None and torch version is >=2.6, automatically set enable_torch_compile to True

@wenhuach21 wenhuach21 merged commit 8918df2 into main Nov 14, 2024
12 of 14 checks passed
@wenhuach21 wenhuach21 deleted the fixbug_11_13 branch November 14, 2024 05:05
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