intel / torch-xpu-ops

Apache License 2.0
30 stars 21 forks source link

Add aten::heaviside and its variants #1024

Closed Kanya-Mo closed 3 weeks ago

Kanya-Mo commented 3 weeks ago
xytintel commented 3 weeks ago

(kanya_pt) kanyamo@adl104051:/localdisk/kanya/pytorch/third_party/torch-xpu-ops$ PYTORCH_DEBUG_XPU_FALLBACK=1 PYTORCH_TEST_WITH_SLOW=1 pytest -vs ./test/xpu/test_ops_xpu.py -k heaviside ================================================= test session starts ================================================== platform linux -- Python 3.10.15, pytest-8.3.3, pluggy-1.5.0 -- /localdisk/miniforge3/envs/kanya_pt/bin/python3.10 cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/localdisk/kanya/pytorch/third_party/torch-xpu-ops/.hypothesis/examples')) rootdir: /localdisk/kanya/pytorch configfile: pytest.ini plugins: hypothesis-6.114.1 collected 14054 items / 14004 deselected / 50 selected

test/xpu/test_ops_xpu.py::TestCommonXPU::test_dtypesrefs_heaviside_xpu PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_dtypes_heaviside_xpu PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_errors_heaviside_xpu PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_multiple_devices_heaviside_xpu_float32 SKIPPED (fewer than 2 d...) test/xpu/test_ops_xpu.py::TestCommonXPU::test_multiple_devices_heaviside_xpu_int64 SKIPPED (fewer than 2 dev...) test/xpu/test_ops_xpu.py::TestCommonXPU::test_non_standard_bool_values_heaviside_xpu_bool PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_noncontiguous_samples_heaviside_xpu_float32 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_noncontiguous_samples_heaviside_xpu_int64 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_outrefs_heaviside_xpu_float32 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_out_heaviside_xpu_float32 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_out_warningrefs_heaviside_xpu PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_out_warning_heaviside_xpu PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_refrefs_heaviside_xpu_bfloat16 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_refrefs_heaviside_xpu_bool PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref__refs_heaviside_xpu_float16 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_refrefs_heaviside_xpu_float32 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_refrefs_heaviside_xpu_int16 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref__refs_heaviside_xpu_int32 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_refrefs_heaviside_xpu_int64 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_refrefs_heaviside_xpu_int8 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_refrefs_heaviside_xpu_uint8 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_errorsrefs_heaviside_xpu PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executorrefs_heaviside_executor_aten_xpu_bfloat16 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executorrefs_heaviside_executor_aten_xpu_bool PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executorrefs_heaviside_executor_aten_xpu_float16 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executorrefs_heaviside_executor_aten_xpu_float32 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executorrefs_heaviside_executor_aten_xpu_int16 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executorrefs_heaviside_executor_aten_xpu_int32 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executorrefs_heaviside_executor_aten_xpu_int64 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executorrefs_heaviside_executor_aten_xpu_int8 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executorrefs_heaviside_executor_aten_xpu_uint8 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_metarefs_heaviside_xpu_bfloat16 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_metarefs_heaviside_xpu_bool PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_metarefs_heaviside_xpu_float16 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_metarefs_heaviside_xpu_float32 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_metarefs_heaviside_xpu_int16 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_metarefs_heaviside_xpu_int32 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_metarefs_heaviside_xpu_int64 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_metarefs_heaviside_xpu_int8 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_metarefs_heaviside_xpu_uint8 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_torch_fallback__refs_heaviside_xpu_bfloat16 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_torch_fallbackrefs_heaviside_xpu_bool PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_torch_fallbackrefs_heaviside_xpu_float16 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_torch_fallback__refs_heaviside_xpu_float32 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_torch_fallbackrefs_heaviside_xpu_int16 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_torch_fallbackrefs_heaviside_xpu_int32 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_torch_fallback__refs_heaviside_xpu_int64 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_torch_fallbackrefs_heaviside_xpu_int8 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_torch_fallback__refs_heaviside_xpu_uint8 PASSED test/xpu/test_ops_xpu.py::TestCommonXPU::test_variant_consistency_eager_heaviside_xpu_float32 PASSED

=================================== 48 passed, 2 skipped, 14004 deselected in 16.83s ===================================