-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into penghuic/pytest_by_script
- Loading branch information
Showing
14 changed files
with
439 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
import pytest | ||
import sys | ||
from skip_list_common import skip_dict | ||
from skip_list_win import skip_dict as skip_dict_win | ||
from skip_list_win_bmg import skip_dict as skip_dict_win_bmg | ||
|
||
IS_WINDOWS = sys.platform == "win32" | ||
|
||
skip_list = skip_dict["test_ops_xpu.py"] | ||
if IS_WINDOWS: | ||
skip_list += skip_dict_win["test_ops_xpu.py"] + skip_dict_win_bmg["test_ops_xpu.py"] | ||
|
||
skip_options = "not " + skip_list[0] | ||
for skip_case in skip_list[1:]: | ||
skip_option = " and not " + skip_case | ||
skip_options += skip_option | ||
|
||
os.environ["PYTORCH_TEST_WITH_SLOW"]="1" | ||
test_command = ["-k", skip_options, "test_ops_xpu.py", "-v"] | ||
res = pytest.main(test_command) | ||
sys.exit(res) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
import pytest | ||
import sys | ||
from skip_list_common import skip_dict | ||
from skip_list_win import skip_dict as skip_dict_win | ||
from skip_list_win_lnl import skip_dict as skip_dict_win_lnl | ||
|
||
IS_WINDOWS = sys.platform == "win32" | ||
|
||
skip_list = skip_dict["test_ops_xpu.py"] | ||
if IS_WINDOWS: | ||
skip_list += skip_dict_win["test_ops_xpu.py"] + skip_dict_win_lnl["test_ops_xpu.py"] | ||
|
||
skip_options = "not " + skip_list[0] | ||
for skip_case in skip_list[1:]: | ||
skip_option = " and not " + skip_case | ||
skip_options += skip_option | ||
|
||
os.environ["PYTORCH_TEST_WITH_SLOW"]="1" | ||
test_command = ["-k", skip_options, "test_ops_xpu.py", "-v"] | ||
res = pytest.main(test_command) | ||
sys.exit(res) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
import pytest | ||
import sys | ||
from skip_list_common import skip_dict | ||
from skip_list_win import skip_dict as skip_dict_win | ||
from skip_list_win_mtl import skip_dict as skip_dict_win_mtl | ||
|
||
IS_WINDOWS = sys.platform == "win32" | ||
|
||
skip_list = skip_dict["test_ops_xpu.py"] | ||
if IS_WINDOWS: | ||
skip_list += skip_dict_win["test_ops_xpu.py"] + skip_dict_win_mtl["test_ops_xpu.py"] | ||
|
||
skip_options = "not " + skip_list[0] | ||
for skip_case in skip_list[1:]: | ||
skip_option = " and not " + skip_case | ||
skip_options += skip_option | ||
|
||
os.environ["PYTORCH_TEST_WITH_SLOW"]="1" | ||
test_command = ["-k", skip_options, "test_ops_xpu.py", "-v"] | ||
res = pytest.main(test_command) | ||
sys.exit(res) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
skip_dict = { | ||
"test_ops_xpu.py": ( | ||
# https://github.com/intel/torch-xpu-ops/issues/1173 | ||
# Fatal Python error: Illegal instruction | ||
"test_compare_cpu_grid_sampler_2d_xpu_float64", | ||
"test_compare_cpu_cosh_xpu_complex64", | ||
"test_compare_cpu_nn_functional_softshrink_xpu_bfloat16", | ||
"test_compare_cpu_nn_functional_softshrink_xpu_float16", | ||
"test_compare_cpu_nn_functional_softshrink_xpu_float32", | ||
"test_compare_cpu_nn_functional_softshrink_xpu_float64", | ||
"test_compare_cpu_square_xpu_complex128", | ||
), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
skip_dict = { | ||
"test_ops_xpu.py": ( | ||
# https://github.com/intel/torch-xpu-ops/issues/1173 | ||
# Fatal Python error: Illegal instruction | ||
"test_compare_cpu_grid_sampler_2d_xpu_float64", | ||
"test_compare_cpu_cosh_xpu_complex64", | ||
"test_compare_cpu_nn_functional_softshrink_xpu_bfloat16", | ||
"test_compare_cpu_nn_functional_softshrink_xpu_float16", | ||
"test_compare_cpu_nn_functional_softshrink_xpu_float32", | ||
"test_compare_cpu_nn_functional_softshrink_xpu_float64", | ||
"test_compare_cpu_square_xpu_complex128", | ||
), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
skip_dict = { | ||
# failed on MTL windows, skip first for Preci | ||
"test_ops_xpu.py": ( | ||
"test_compare_cpu_sqrt_xpu_complex64", | ||
"test_backward_nn_functional_adaptive_avg_pool2d_xpu_float32", | ||
|
||
"test_compare_cpu_cosh_xpu_complex128", | ||
"test_compare_cpu_frexp_xpu_bfloat16", | ||
"test_compare_cpu_frexp_xpu_float16", | ||
"test_compare_cpu_frexp_xpu_float32", | ||
"test_compare_cpu_frexp_xpu_float64", | ||
"test_compare_cpu_max_pool2d_with_indices_backward_xpu_bfloat16", | ||
"test_compare_cpu_max_pool2d_with_indices_backward_xpu_float16", | ||
"test_compare_cpu_max_pool2d_with_indices_backward_xpu_float32", | ||
"test_compare_cpu_max_pool2d_with_indices_backward_xpu_float64", | ||
"test_compare_cpu_nn_functional_avg_pool2d_xpu_bfloat16", | ||
"test_compare_cpu_nn_functional_avg_pool2d_xpu_float32", | ||
"test_compare_cpu_nn_functional_avg_pool3d_xpu_float32", | ||
), | ||
} |
Oops, something went wrong.