You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FAILED test_ops_xpu.py::TestCommonXPU::test_compare_cpu_nn_functional_softshrink_xpu_bfloat16 - AssertionError: Tensor-likes are not close!
FAILED test_ops_xpu.py::TestCommonXPU::test_compare_cpu_nn_functional_softshrink_xpu_float16 - AssertionError: Tensor-likes are not close!
FAILED test_ops_xpu.py::TestCommonXPU::test_compare_cpu_nn_functional_softshrink_xpu_float32 - AssertionError: Tensor-likes are not close!
When input is nan, PVC and CPU return nan while ARC returns 0. However I write a small case and it also returns nan on ARC, looks not a compiler issue. Need more investigations.
Traceback (most recent call last):
File "/root/actions-runner/_work/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/extended/test_ops_xpu.py", line 97, in test_compare_cpu
test_common_test_fn(self.proxy, device, dtype, op)
File "/root/actions-runner/_work/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/../../../../test/test_ops.py", line 414, in test_compare_cpu
self.assertEqual(cuda_results, cpu_results, atol=1e-3, rtol=1e-3)
File "/daisyenv/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 4007, in assertEqual
raise error_metas.pop()[0].to_error(
AssertionError: Tensor-likes are not close!
Mismatched elements: 3 / 9 (33.3%)
Greatest absolute difference: nan at index (6,) (up to 0.001 allowed)
Greatest relative difference: nan at index (6,) (up to 0.001 allowed)
🐛 Describe the bug
FAILED test_ops_xpu.py::TestCommonXPU::test_compare_cpu_nn_functional_softshrink_xpu_bfloat16 - AssertionError: Tensor-likes are not close!
FAILED test_ops_xpu.py::TestCommonXPU::test_compare_cpu_nn_functional_softshrink_xpu_float16 - AssertionError: Tensor-likes are not close!
FAILED test_ops_xpu.py::TestCommonXPU::test_compare_cpu_nn_functional_softshrink_xpu_float32 - AssertionError: Tensor-likes are not close!
When input is nan, PVC and CPU return nan while ARC returns 0. However I write a small case and it also returns nan on ARC, looks not a compiler issue. Need more investigations.
Traceback (most recent call last):
File "/root/actions-runner/_work/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/extended/test_ops_xpu.py", line 97, in test_compare_cpu
test_common_test_fn(self.proxy, device, dtype, op)
File "/root/actions-runner/_work/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/../../../../test/test_ops.py", line 414, in test_compare_cpu
self.assertEqual(cuda_results, cpu_results, atol=1e-3, rtol=1e-3)
File "/daisyenv/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 4007, in assertEqual
raise error_metas.pop()[0].to_error(
AssertionError: Tensor-likes are not close!
Mismatched elements: 3 / 9 (33.3%)
Greatest absolute difference: nan at index (6,) (up to 0.001 allowed)
Greatest relative difference: nan at index (6,) (up to 0.001 allowed)
on host: result: nan
device output nan nan
Intel(R) oneAPI DPC++/C++ Compiler 2025.0.1 (2025.0.1.20241113)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2025.0/bin/compiler
Configuration file: /opt/intel/oneapi/compiler/2025.0/bin/compiler/../icpx.cfg
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/13
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/13
Candidate multilib: .;@m64
Selected multilib: .;@m64
Versions
pip install --pre torch==2.6.0.dev20241202+xpu torchvision==0.20.0.dev20241202+xpu torchaudio==2.5.0.dev20241202+xpu --index-url https://download.pytorch.org/whl/nightly/xpu
The text was updated successfully, but these errors were encountered: