intel / intel/torch-xpu-ops

[upstream ut] test_multihead_attention.py::TestMultiheadAttentionNNDeviceTypeXPU::test_multihead_self_attn_two_masks_fast_path_mock_xpu

Open
#4,448 0 comments 0 reactions 0 assignees View on GitHub
ut_upstream
Dominant language
Python
Stars
113
Forks
128
Avg merge
5d 13h
Merged PRs (30d)
107

Description

### 🐛 Describe the bug

test_multihead_attention.py::TestMultiheadAttentionNNDeviceTypeXPU::test_multihead_self_attn_two_masks_fast_path_mock_xpu
```
___________________ TestMultiheadAttentionNNDeviceTypeXPU.test_multihead_self_attn_two_masks_fast_path_mock_xpu ___________________
Traceback (most recent call last):
File "/home/sdp/xiangdong/new/pytorch/test/nn/test_multihead_attention.py", line 885, in test_multihead_self_attn_two_masks_fast_path_mock
self.assertTrue(fastpath_mock.called)
File "/home/sdp/miniforge3/envs/xccl_test/lib/python3.10/unittest/case.py", line 687, in assertTrue
raise self.failureException(msg)
AssertionError: False is not true

To execute this test, run the following from the base repo dir:
python test/nn/test_multihead_attention.py TestMultiheadAttentionNNDeviceTypeXPU.test_multihead_self_attn_two_masks_fast_path_mock_xpu

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
```
**ToDo:**
https://github.com/pytorch/pytorch/pull/189358

### Versions

https://github.com/pytorch/pytorch main branch

Contributor guide

Open the contributing guide

Research direction

Run the command shown in the issue from the repository root, then inspect test/nn/test_multihead_attention.py around line 885 and the referenced upstream pull request. Done means resolving the failing assertion in TestMultiheadAttentionNNDeviceTypeXPU.test_multihead_self_attn_two_masks_fast_path_mock_xpu and confirming that the named test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.