Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add aten::heaviside and its variants (#1024)
- [x] heaviside.out - [x] heaviside - [x] heaviside_ > (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_dtypes__refs_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_out__refs_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_warning__refs_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_ref__refs_heaviside_xpu_bfloat16 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref__refs_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_ref__refs_heaviside_xpu_float32 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref__refs_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_ref__refs_heaviside_xpu_int64 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref__refs_heaviside_xpu_int8 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref__refs_heaviside_xpu_uint8 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_errors__refs_heaviside_xpu PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executor__refs_heaviside_executor_aten_xpu_bfloat16 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executor__refs_heaviside_executor_aten_xpu_bool PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executor__refs_heaviside_executor_aten_xpu_float16 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executor__refs_heaviside_executor_aten_xpu_float32 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executor__refs_heaviside_executor_aten_xpu_int16 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executor__refs_heaviside_executor_aten_xpu_int32 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executor__refs_heaviside_executor_aten_xpu_int64 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executor__refs_heaviside_executor_aten_xpu_int8 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_executor__refs_heaviside_executor_aten_xpu_uint8 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_meta__refs_heaviside_xpu_bfloat16 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_meta__refs_heaviside_xpu_bool PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_meta__refs_heaviside_xpu_float16 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_meta__refs_heaviside_xpu_float32 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_meta__refs_heaviside_xpu_int16 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_meta__refs_heaviside_xpu_int32 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_meta__refs_heaviside_xpu_int64 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_meta__refs_heaviside_xpu_int8 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_meta__refs_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_fallback__refs_heaviside_xpu_bool PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_torch_fallback__refs_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_fallback__refs_heaviside_xpu_int16 PASSED > test/xpu/test_ops_xpu.py::TestCommonXPU::test_python_ref_torch_fallback__refs_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_fallback__refs_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 ===================================
- Loading branch information