pytorch / pytorch/pytorch

DISABLED test_Embedding_discontiguous_cuda (__main__.TestNN)

Open
#186,910 2 comments 0 reactions 0 assignees View on GitHub
module: flaky-tests module: nn skipped triaged
Dominant language
Python
Stars
103k
Forks
29.5k
PR merge metrics
PR metrics pending

Description

Platforms: rocm, linux, slow

This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_Embedding_discontiguous_cuda&suite=TestNN&limit=100) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/80425550719).

Over the past 6 hours, it has been determined flaky in 12 workflow(s) with 13 failures and 12 successes.

**Debugging instructions (after clicking on the recent samples link):**
DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
3. Grep for `test_Embedding_discontiguous_cuda`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.

Sample error message

```
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/test/test_nn.py", line 8148, in with_tf32_off
test.test_cuda(self, **kwargs)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/testing/_internal/common_nn.py", line 3645, in test_cuda
self.test_noncontig(test_case, gpu_module, gpu_input_tuple)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/testing/_internal/common_nn.py", line 3552, in test_noncontig
test_case.assertEqual(test_case._get_parameters(module)[1], d_param)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/testing/_internal/common_utils.py", line 4571, in assertEqual
raise error_metas.pop()[0].to_error( # type: ignore[index]
AssertionError: Tensor-likes are not close!

Mismatched elements: 1 / 12 (8.3%)
Greatest absolute difference: 1.811981201171875e-05 at index (3, 2) (up to 1e-05 allowed)
Greatest relative difference: 1.1661714779620524e-05 at index (3, 2) (up to 1.3e-06 allowed)

The failure occurred for item [0]

To execute this test, run the following from the base repo dir:
PYTORCH_TEST_WITH_ROCM=1 python test/test_nn.py TestNN.test_Embedding_discontiguous_cuda

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
```

Test file path: `test_nn.py`

For all disabled tests (by GitHub issue), see https://hud.pytorch.org/disabled.

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.