Skip to content

AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy' in test_unary_ufuncs_xpu.py#5073

Description

@kaileiyx

馃悰 Describe the bug

Cases:
op_ut,,third_party.torch-xpu-ops.test.xpu.test_unary_ufuncs_xpu

ErrorLog

==================================== ERRORS ====================================
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py _
Traceback (most recent call last):
  File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py", line 67, in <module>
    TestUnaryUfuncs.test_tan_complex_cuda_matches_numpy
AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py _
Traceback (most recent call last):
  File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py", line 67, in <module>
    TestUnaryUfuncs.test_tan_complex_cuda_matches_numpy
AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py _
Traceback (most recent call last):
  File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py", line 67, in <module>
    TestUnaryUfuncs.test_tan_complex_cuda_matches_numpy
AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py _
Traceback (most recent call last):
  File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py", line 67, in <module>
    TestUnaryUfuncs.test_tan_complex_cuda_matches_numpy
AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py _
Traceback (most recent call last):
  File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py", line 67, in <module>
    TestUnaryUfuncs.test_tan_complex_cuda_matches_numpy
AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py _
Traceback (most recent call last):
  File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py", line 67, in <module>
    TestUnaryUfuncs.test_tan_complex_cuda_matches_numpy
AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py _
Traceback (most recent call last):
  File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py", line 67, in <module>
    TestUnaryUfuncs.test_tan_complex_cuda_matches_numpy
AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py _
Traceback (most recent call last):
  File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_unary_ufuncs_xpu.py", line 67, in <module>
    TestUnaryUfuncs.test_tan_complex_cuda_matches_numpy
AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
- generated xml file: /__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/op_ut_with_all.test_unary_ufuncs_xpu.xml -
=========================== short test summary info ============================
ERROR test_unary_ufuncs_xpu.py - AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
ERROR test_unary_ufuncs_xpu.py - AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
ERROR test_unary_ufuncs_xpu.py - AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
ERROR test_unary_ufuncs_xpu.py - AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
ERROR test_unary_ufuncs_xpu.py - AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
ERROR test_unary_ufuncs_xpu.py - AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
ERROR test_unary_ufuncs_xpu.py - AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
ERROR test_unary_ufuncs_xpu.py - AttributeError: type object 'TestUnaryUfuncs' has no attribute 'test_tan_complex_cuda_matches_numpy'. Did you mean: 'test_tan_complex_matches_numpy'?
============================== 8 errors in 4.48s ===============================

Pytorch version

latest good : d864943a877d29ac551ac02bab5db080a551bb7f
current : 67aade50124b2ecf712bcfce2ec86c2d60d50caa

Versions

Detail Collecting environment information... PyTorch version: 2.15.0a0+gitff9aadc Is debug build: False CUDA used to build PyTorch: None ROCM used to build PyTorch: N/A

OS: Ubuntu 26.04 LTS (x86_64)
GCC version: (Ubuntu 13.4.0-10ubuntu1) 13.4.0
Clang version: Could not collect
CMake version: version 3.31.6
Libc version: glibc-2.43

Python version: 3.10.21 (main, Aug 14 2026, 15:33:52) [Clang 22.1.3 ] (64-bit runtime)
Python platform: Linux-7.0.0-29-generic-x86_64-with-glibc2.43
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
Is XPU available: True
XPU used to build PyTorch: 20260100
Intel GPU driver version:

  • libze1: 1.28.2-2
  • intel-opencl-icd: 26.18.38308.1-126.04ppa1
    Intel GPU models onboard:
  • Intel(R) Arc(TM) Pro B60 Graphics
  • Intel(R) Arc(TM) Pro B60 Graphics
  • Intel(R) Arc(TM) Pro B60 Graphics
  • Intel(R) Arc(TM) Pro B60 Graphics
  • Intel(R) Arc(TM) Pro B60 Graphics
  • Intel(R) Arc(TM) Pro B60 Graphics
  • Intel(R) Arc(TM) Pro B60 Graphics
  • Intel(R) Arc(TM) Pro B60 Graphics
    Intel GPU models detected:
  • [0] _XpuDeviceProperties(name='Intel(R) Arc(TM) Pro B60 Graphics', platform_name='Intel(R) oneAPI Unified Runtime over Level-Zero V2', type='gpu', device_id=0xE211, uuid=868011e2-0000-0000-1700-000000000000, driver_version='1.15.38308+1', total_memory=24480MB, local_mem_size=128KB, last_level_cache_size=18432KB, max_compute_units=160, memory_clock_rate=2400MHz, memory_bus_width=64-bit, gpu_eu_count=160, gpu_subslice_count=20, max_work_group_size=1024, max_num_sub_groups=64, sub_group_sizes=[16 32], has_fp16=1, has_fp64=1, has_atomic64=1, is_integrated_gpu=0)
  • [1] _XpuDeviceProperties(name='Intel(R) Arc(TM) Pro B60 Graphics', platform_name='Intel(R) oneAPI Unified Runtime over Level-Zero V2', type='gpu', device_id=0xE211, uuid=868011e2-0000-0000-2c00-000000000000, driver_version='1.15.38308+1', total_memory=24480MB, local_mem_size=128KB, last_level_cache_size=18432KB, max_compute_units=160, memory_clock_rate=2400MHz, memory_bus_width=64-bit, gpu_eu_count=160, gpu_subslice_count=20, max_work_group_size=1024, max_num_sub_groups=64, sub_group_sizes=[16 32], has_fp16=1, has_fp64=1, has_atomic64=1, is_integrated_gpu=0)
  • [2] _XpuDeviceProperties(name='Intel(R) Arc(TM) Pro B60 Graphics', platform_name='Intel(R) oneAPI Unified Runtime over Level-Zero V2', type='gpu', device_id=0xE211, uuid=868011e2-0000-0000-3d00-000000000000, driver_version='1.15.38308+1', total_memory=24480MB, local_mem_size=128KB, last_level_cache_size=18432KB, max_compute_units=160, memory_clock_rate=2400MHz, memory_bus_width=64-bit, gpu_eu_count=160, gpu_subslice_count=20, max_work_group_size=1024, max_num_sub_groups=64, sub_group_sizes=[16 32], has_fp16=1, has_fp64=1, has_atomic64=1, is_integrated_gpu=0)
  • [3] _XpuDeviceProperties(name='Intel(R) Arc(TM) Pro B60 Graphics', platform_name='Intel(R) oneAPI Unified Runtime over Level-Zero V2', type='gpu', device_id=0xE211, uuid=868011e2-0000-0000-4e00-000000000000, driver_version='1.15.38308+1', total_memory=24480MB, local_mem_size=128KB, last_level_cache_size=18432KB, max_compute_units=160, memory_clock_rate=2400MHz, memory_bus_width=64-bit, gpu_eu_count=160, gpu_subslice_count=20, max_work_group_size=1024, max_num_sub_groups=64, sub_group_sizes=[16 32], has_fp16=1, has_fp64=1, has_atomic64=1, is_integrated_gpu=0)
  • [4] _XpuDeviceProperties(name='Intel(R) Arc(TM) Pro B60 Graphics', platform_name='Intel(R) oneAPI Unified Runtime over Level-Zero V2', type='gpu', device_id=0xE211, uuid=868011e2-0000-0000-9700-000000000000, driver_version='1.15.38308+1', total_memory=24480MB, local_mem_size=128KB, last_level_cache_size=18432KB, max_compute_units=160, memory_clock_rate=2400MHz, memory_bus_width=64-bit, gpu_eu_count=160, gpu_subslice_count=20, max_work_group_size=1024, max_num_sub_groups=64, sub_group_sizes=[16 32], has_fp16=1, has_fp64=1, has_atomic64=1, is_integrated_gpu=0)
  • [5] _XpuDeviceProperties(name='Intel(R) Arc(TM) Pro B60 Graphics', platform_name='Intel(R) oneAPI Unified Runtime over Level-Zero V2', type='gpu', device_id=0xE211, uuid=868011e2-0000-0000-a900-000000000000, driver_version='1.15.38308+1', total_memory=24480MB, local_mem_size=128KB, last_level_cache_size=18432KB, max_compute_units=160, memory_clock_rate=2400MHz, memory_bus_width=64-bit, gpu_eu_count=160, gpu_subslice_count=20, max_work_group_size=1024, max_num_sub_groups=64, sub_group_sizes=[16 32], has_fp16=1, has_fp64=1, has_atomic64=1, is_integrated_gpu=0)
  • [6] _XpuDeviceProperties(name='Intel(R) Arc(TM) Pro B60 Graphics', platform_name='Intel(R) oneAPI Unified Runtime over Level-Zero V2', type='gpu', device_id=0xE211, uuid=868011e2-0000-0000-ba00-000000000000, driver_version='1.15.38308+1', total_memory=24480MB, local_mem_size=128KB, last_level_cache_size=18432KB, max_compute_units=160, memory_clock_rate=2400MHz, memory_bus_width=64-bit, gpu_eu_count=160, gpu_subslice_count=20, max_work_group_size=1024, max_num_sub_groups=64, sub_group_sizes=[16 32], has_fp16=1, has_fp64=1, has_atomic64=1, is_integrated_gpu=0)
  • [7] _XpuDeviceProperties(name='Intel(R) Arc(TM) Pro B60 Graphics', platform_name='Intel(R) oneAPI Unified Runtime over Level-Zero V2', type='gpu', device_id=0xE211, uuid=868011e2-0000-0000-cb00-000000000000, driver_version='1.15.38308+1', total_memory=24480MB, local_mem_size=128KB, last_level_cache_size=18432KB, max_compute_units=160, memory_clock_rate=2400MHz, memory_bus_width=64-bit, gpu_eu_count=160, gpu_subslice_count=20, max_work_group_size=1024, max_num_sub_groups=64, sub_group_sizes=[16 32], has_fp16=1, has_fp64=1, has_atomic64=1, is_integrated_gpu=0)
    HIP runtime version: N/A
    MIOpen runtime version: N/A
    Is XNNPACK available: False
    Caching allocator config: N/A
    Vulnerability Tsx async abort: Not affected
    Vulnerability Vmscape: Mitigation; IBPB before exit to userspace

Versions of relevant libraries:
[pip3] dpcpp-cpp-rt==2026.1.0
[pip3] impi-rt==2021.18.1
[pip3] intel-cmplr-lib-rt==2026.1.0
[pip3] intel-cmplr-lib-ur==2026.1.0
[pip3] intel-cmplr-lic-rt==2026.1.0
[pip3] intel-opencl-rt==2026.1.0
[pip3] intel-openmp==2026.1.0
[pip3] intel-pti==1.0.1
[pip3] intel-sycl-rt==2026.1.0
[pip3] mkl==2026.1.0
[pip3] mypy==1.16.0
[pip3] mypy_extensions==1.1.0
[pip3] numpy==1.24.4
[pip3] nvidia-cuda-cupti==13.3.75
[pip3] oneccl==2022.1.1
[pip3] oneccl-devel==2022.1.1
[pip3] onemkl-license==2026.1.0
[pip3] onemkl-sycl-blas==2026.1.0
[pip3] onemkl-sycl-dft==2026.1.0
[pip3] onemkl-sycl-lapack==2026.1.0
[pip3] onemkl-sycl-rng==2026.1.0
[pip3] onemkl-sycl-sparse==2026.1.0
[pip3] onnx==1.21.0
[pip3] onnx-ir==0.1.16
[pip3] onnxscript==0.6.2
[pip3] optree==0.13.0
[pip3] tbb==2023.1.0
[pip3] tcmlib==1.5.0
[pip3] torch==2.15.0a0+gitff9aadc
[pip3] torchao==0.19.0.dev20260823+xpu
[pip3] torchaudio==2.11.0a0+4e3e282
[pip3] torchvision==0.30.0a0+e6f0400
[pip3] triton-xpu==3.8.0+git1e2d42a0
[pip3] umf==1.1.0
[conda] No relevant packages

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions