-
Notifications
You must be signed in to change notification settings - Fork 548
Fix CPU tests for python 3.12 #9443
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
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks!
@@ -68,7 +68,6 @@ | |||
platform_machine = platform.machine() | |||
|
|||
base_dir = os.path.dirname(os.path.abspath(__file__)) | |||
|
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.
Revert?
@@ -123,7 +123,7 @@ function run_torch_op_tests { | |||
run_test_without_functionalization "$_TEST_DIR/../../test/test_view_ops.py" "$@" -v TestViewOpsXLA | |||
run_test "$_TEST_DIR/../../test/test_torch.py" "$@" -v TestTorchDeviceTypeXLA | |||
run_dynamic "$_TEST_DIR/../../test/test_torch.py" "$@" -v TestDevicePrecisionXLA | |||
run_test "$_TEST_DIR/../../test/test_torch.py" "$@" -v TestTensorDeviceOpsXLA | |||
# run_test "$_TEST_DIR/../../test/test_torch.py" "$@" -v TestTensorDeviceOpsXLA |
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.
Why's this commented out?
XLAGraphExecutor::Get()->GetLiveTensors(&backend_device); | ||
} else { | ||
xtensors = GetXlaTensors(tensors, /*want_all=*/false); | ||
bool emit_bytecode) { |
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.
I don't understand why we should remove the py::bytes
return type. The PR description says it's undefined behavior - how?
} | ||
return py::bytes( | ||
XLAGraphExecutor::Get()->DumpHloComputation(xtensors, mode)); |
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.
Is the old behavior a bug? How was the bug introduced without being noticed?
py::bytes
out of NoGil section as it is undefined behavior and causes segfaultTestTensorDeviceOpsXLA
as it doesn't run any tests and causes the whole test suite to fail