-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conversation
@@ -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): |
There was a problem hiding this comment.
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' ?
There was a problem hiding this comment.
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
No description provided.