Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge main #1051

Merged
merged 21 commits into from
Nov 6, 2024
Merged

merge main #1051

merged 21 commits into from
Nov 6, 2024

Conversation

chunhuanMeng
Copy link
Contributor

No description provided.

fengyuan14 and others added 21 commits October 28, 2024 04:33
- [x] multi_margin_loss
- [x] multi_margin_loss.out
- [x] multi_margin_loss_backward
- [x] multi_margin_loss_backward.grad_input

---------

Co-authored-by: Yutao Xu <[email protected]>
Add the implementation opeartor _foreach_copy_
Tested on PVC.

---------

Co-authored-by: Yutao Xu <[email protected]>
- [x] _masked_softmax
- [x] _masked_softmax_backward
- grid_sampler_3d
- grid_sample_3d_backward

---------

Co-authored-by: Yutao Xu <[email protected]>
- [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 ===================================
- [x] multilabel_margin_loss forward
- [x] multilabel_margin_loss backward

---------

Co-authored-by: Yutao Xu <[email protected]>
- [x] i0.out
- [x] i0
- [x] i0_
- igamma
- igamma.out
- igamma_
- igammac
- igammac.out
- igammac_
Add these methods to xpu device.

---------

Co-authored-by: Yutao Xu <[email protected]>
- [x] special_scaled_modified_bessel_k0
- [x] special_scaled_modified_bessel_k0.out
- [x] special_scaled_modified_bessel_k1
- [x] special_scaled_modified_bessel_k1.out
- [x] special_xlog1py
- [x] special_xlog1py.out
- [x] special_zeta
- [x] special_zeta.out
- [x] special_entr
- [x] special_entr.out
- [x] special_erfcx
- [x] special_erfcx.out

Co-authored-by: Yutao Xu <[email protected]>
- `special_airy_ai.out`
- `special_airy_ai`

---------

Co-authored-by: Yutao Xu <[email protected]>
1. clean cache
2. remove merged additional PRs
Add the following operators:

- foreach_sub.List
- foreach_sub.Scalar
- foreach_sub.ScalarList
- foreach_sub_.List
- foreach_sub_.Scalar
- foreach_sub_.ScalarList

---------

Co-authored-by: Yutao Xu <[email protected]>
- \_fused_adam_
- \_fused_adam_.tensor_lr
- \_fused_adamw_
- \_fused_adamw_.tensor_lr

---------

Co-authored-by: Yutao Xu <[email protected]>
PyTorch has self logic of loading dll on Windows. The logic in
torch-xpu-ops:bridge.cpp gets conflict against PyTorch logic.

Signed-off-by: Feng Yuan <[email protected]>
- `_standard_gamma`
- `_standard_gamma_grad`
…ackward) (#880)

- [x] fractional_max_pool2d
- [x] fractional_max_pool2d_backward
- [x] fractional_max_pool3d
- [x] fractional_max_pool3d_backward

---------

Co-authored-by: Yutao Xu <[email protected]>
CUDA dispatches to CPU as well.
- `mvlgamma.out`
- `mvlgamma`
- `mvlgamma_`
@chunhuanMeng chunhuanMeng merged commit 0c0c6cd into meng_fix_test_cow Nov 6, 2024
3 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants