Repository: pytorch
Issue: Python 3.12 CPU TestNamedTensor::test_using_unseen_interned/uninterned tests are failing
Labels: module: tests,triaged,module: named tensor

### 🐛 Describe the bug

I observe following failure when adding support for python 3.12 CPU, workflow : linux-focal-py3.12-clang10

Failure can be seen here:
https://github.com/pytorch/pytorch/actions/runs/7831757776/job/21369588224?pr=117853

Log:
```
2024-02-08T15:39:06.8497388Z test_namedtensor.py::TestNamedTensor::test_using_unseen_interned_string_bumps_refcount_permanently FAILED [0.0008s] [ 98%]
2024-02-08T15:39:06.8498094Z 
2024-02-08T15:39:06.8498289Z ==================================== RERUNS ====================================
2024-02-08T15:39:06.8498987Z _ TestNamedTensor.test_using_unseen_interned_string_bumps_refcount_permanently _
2024-02-08T15:39:06.8499622Z Traceback (most recent call last):
2024-02-08T15:39:06.8500566Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1400, in test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8501566Z     self.assertEqual(new_refcnt, old_refcnt + 1)
2024-02-08T15:39:06.8502613Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8503534Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8503971Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8504256Z 
2024-02-08T15:39:06.8504386Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8504785Z Absolute difference: 1
2024-02-08T15:39:06.8505184Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8505484Z 
2024-02-08T15:39:06.8505736Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8506661Z      python test/test_namedtensor.py -k test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8507261Z 
2024-02-08T15:39:06.8507576Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8508407Z _ TestNamedTensor.test_using_unseen_interned_string_bumps_refcount_permanently _
2024-02-08T15:39:06.8509040Z Traceback (most recent call last):
2024-02-08T15:39:06.8509971Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1400, in test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8510957Z     self.assertEqual(new_refcnt, old_refcnt + 1)
2024-02-08T15:39:06.8512003Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8512927Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8513360Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8513645Z 
2024-02-08T15:39:06.8513784Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8514169Z Absolute difference: 1
2024-02-08T15:39:06.8514567Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8514868Z 
2024-02-08T15:39:06.8515125Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8516146Z      python test/test_namedtensor.py -k test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8516728Z 
2024-02-08T15:39:06.8517056Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8517712Z =================================== FAILURES ===================================
2024-02-08T15:39:06.8518412Z _ TestNamedTensor.test_using_unseen_interned_string_bumps_refcount_permanently _
2024-02-08T15:39:06.8519061Z Traceback (most recent call last):
2024-02-08T15:39:06.8519974Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1400, in test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8520959Z     self.assertEqual(new_refcnt, old_refcnt + 1)
2024-02-08T15:39:06.8522005Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8522904Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8523341Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8523628Z 
2024-02-08T15:39:06.8523770Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8524156Z Absolute difference: 1
2024-02-08T15:39:06.8524550Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8524857Z 
2024-02-08T15:39:06.8525106Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8526300Z      python test/test_namedtensor.py -k test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8526890Z 
2024-02-08T15:39:06.8527209Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8528510Z - generated xml file: /var/lib/jenkins/workspace/test/test-reports/python-pytest/test_namedtensor/test_namedtensor-d7d472fe86dc5f79.xml -
2024-02-08T15:39:06.8529599Z =========================== short test summary info ============================
2024-02-08T15:39:06.8530808Z FAILED [0.0008s] test_namedtensor.py::TestNamedTensor::test_using_unseen_interned_string_bumps_refcount_permanently - AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8531683Z 
2024-02-08T15:39:06.8531811Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8532205Z Absolute difference: 1
2024-02-08T15:39:06.8532604Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8532901Z 
2024-02-08T15:39:06.8533365Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8534288Z      python test/test_namedtensor.py -k test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8534870Z 
2024-02-08T15:39:06.8535199Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8535880Z !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-02-08T15:39:06.8536519Z =============== 1 failed, 81 passed, 4 skipped, 2 rerun in 1.30s ===============
2024-02-08T15:39:06.8537048Z Got exit code 1
2024-02-08T15:39:06.8537326Z Retrying...
2024-02-08T15:39:06.8538088Z Test results will be stored in test-reports/python-pytest/test_namedtensor/test_namedtensor-37205878b7921c44.xml
2024-02-08T15:39:06.8538980Z ============================= test session starts ==============================
2024-02-08T15:39:06.8539846Z platform linux -- Python 3.12.1, pytest-7.3.2, pluggy-1.4.0 -- /opt/conda/envs/py_3.12/bin/python
2024-02-08T15:39:06.8540530Z cachedir: .pytest_cache
2024-02-08T15:39:06.8541419Z hypothesis profile 'pytorch_ci' -> database=None, max_examples=50, derandomize=True, suppress_health_check=[HealthCheck.too_slow]
2024-02-08T15:39:06.8542290Z rootdir: /var/lib/jenkins/workspace
2024-02-08T15:39:06.8542667Z configfile: pytest.ini
2024-02-08T15:39:06.8543430Z plugins: hypothesis-5.35.1, cpp-2.3.0, flakefinder-1.1.0, rerunfailures-13.0, xdist-3.3.1, xdoctest-1.1.0
2024-02-08T15:39:06.8544303Z collecting ... collected 87 items / 85 deselected / 2 selected
2024-02-08T15:39:06.8544856Z stepcurrent: skipping 85 already run items.
2024-02-08T15:39:06.8545393Z Running 2 items in this shard
2024-02-08T15:39:06.8545646Z 
2024-02-08T15:39:06.8546399Z test_namedtensor.py::TestNamedTensor::test_using_unseen_interned_string_bumps_refcount_permanently ('RERUN', {'yellow': True}) [0.3792s] [ 50%]
2024-02-08T15:39:06.8547949Z test_namedtensor.py::TestNamedTensor::test_using_unseen_interned_string_bumps_refcount_permanently ('RERUN', {'yellow': True}) [0.0010s] [ 50%]
2024-02-08T15:39:06.8549291Z test_namedtensor.py::TestNamedTensor::test_using_unseen_interned_string_bumps_refcount_permanently FAILED [0.0008s] [ 50%]
2024-02-08T15:39:06.8549997Z 
2024-02-08T15:39:06.8550176Z ==================================== RERUNS ====================================
2024-02-08T15:39:06.8550873Z _ TestNamedTensor.test_using_unseen_interned_string_bumps_refcount_permanently _
2024-02-08T15:39:06.8551515Z Traceback (most recent call last):
2024-02-08T15:39:06.8552436Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1400, in test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8553429Z     self.assertEqual(new_refcnt, old_refcnt + 1)
2024-02-08T15:39:06.8554483Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8555388Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8555819Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8556102Z 
2024-02-08T15:39:06.8556316Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8556703Z Absolute difference: 1
2024-02-08T15:39:06.8557104Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8557399Z 
2024-02-08T15:39:06.8557663Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8558571Z      python test/test_namedtensor.py -k test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8559170Z 
2024-02-08T15:39:06.8559484Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8560270Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8562380Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8565875Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8566497Z _ TestNamedTensor.test_using_unseen_interned_string_bumps_refcount_permanently _
2024-02-08T15:39:06.8567142Z Traceback (most recent call last):
2024-02-08T15:39:06.8568080Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1400, in test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8569050Z     self.assertEqual(new_refcnt, old_refcnt + 1)
2024-02-08T15:39:06.8570126Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8571045Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8571477Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8571763Z 
2024-02-08T15:39:06.8571891Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8572287Z Absolute difference: 1
2024-02-08T15:39:06.8572686Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8572984Z 
2024-02-08T15:39:06.8573236Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8574154Z      python test/test_namedtensor.py -k test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8574734Z 
2024-02-08T15:39:06.8575062Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8575826Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8577935Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8580056Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8580519Z =================================== FAILURES ===================================
2024-02-08T15:39:06.8581205Z _ TestNamedTensor.test_using_unseen_interned_string_bumps_refcount_permanently _
2024-02-08T15:39:06.8581851Z Traceback (most recent call last):
2024-02-08T15:39:06.8582791Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1400, in test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8583778Z     self.assertEqual(new_refcnt, old_refcnt + 1)
2024-02-08T15:39:06.8584820Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8585738Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8586167Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8586451Z 
2024-02-08T15:39:06.8586578Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8586973Z Absolute difference: 1
2024-02-08T15:39:06.8587368Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8587667Z 
2024-02-08T15:39:06.8587917Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8588904Z      python test/test_namedtensor.py -k test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8589492Z 
2024-02-08T15:39:06.8589819Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8590598Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8592694Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8594679Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8595764Z - generated xml file: /var/lib/jenkins/workspace/test/test-reports/python-pytest/test_namedtensor/test_namedtensor-37205878b7921c44.xml -
2024-02-08T15:39:06.8596837Z =========================== short test summary info ============================
2024-02-08T15:39:06.8598056Z FAILED [0.0008s] test_namedtensor.py::TestNamedTensor::test_using_unseen_interned_string_bumps_refcount_permanently - AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8598929Z 
2024-02-08T15:39:06.8599057Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8599457Z Absolute difference: 1
2024-02-08T15:39:06.8599838Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8600145Z 
2024-02-08T15:39:06.8600401Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8601325Z      python test/test_namedtensor.py -k test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8601906Z 
2024-02-08T15:39:06.8602222Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8602914Z !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-02-08T15:39:06.8603546Z ================== 1 failed, 85 deselected, 2 rerun in 0.40s ===================
2024-02-08T15:39:06.8604063Z Got exit code 1
2024-02-08T15:39:06.8604321Z Retrying...
2024-02-08T15:39:06.8605105Z Test results will be stored in test-reports/python-pytest/test_namedtensor/test_namedtensor-7963d02eb6ac8314.xml
2024-02-08T15:39:06.8606214Z ============================= test session starts ==============================
2024-02-08T15:39:06.8607076Z platform linux -- Python 3.12.1, pytest-7.3.2, pluggy-1.4.0 -- /opt/conda/envs/py_3.12/bin/python
2024-02-08T15:39:06.8607893Z cachedir: .pytest_cache
2024-02-08T15:39:06.8608771Z hypothesis profile 'pytorch_ci' -> database=None, max_examples=50, derandomize=True, suppress_health_check=[HealthCheck.too_slow]
2024-02-08T15:39:06.8609636Z rootdir: /var/lib/jenkins/workspace
2024-02-08T15:39:06.8610023Z configfile: pytest.ini
2024-02-08T15:39:06.8610790Z plugins: hypothesis-5.35.1, cpp-2.3.0, flakefinder-1.1.0, rerunfailures-13.0, xdist-3.3.1, xdoctest-1.1.0
2024-02-08T15:39:06.8611665Z collecting ... collected 87 items / 85 deselected / 2 selected
2024-02-08T15:39:06.8612232Z stepcurrent: skipping 85 already run items.
2024-02-08T15:39:06.8612667Z Running 2 items in this shard
2024-02-08T15:39:06.8612903Z 
2024-02-08T15:39:06.8613673Z test_namedtensor.py::TestNamedTensor::test_using_unseen_interned_string_bumps_refcount_permanently ('RERUN', {'yellow': True}) [0.3739s] [ 50%]
2024-02-08T15:39:06.8615197Z test_namedtensor.py::TestNamedTensor::test_using_unseen_interned_string_bumps_refcount_permanently ('RERUN', {'yellow': True}) [0.0009s] [ 50%]
2024-02-08T15:39:06.8616534Z test_namedtensor.py::TestNamedTensor::test_using_unseen_interned_string_bumps_refcount_permanently FAILED [0.0008s] [ 50%]
2024-02-08T15:39:06.8617227Z 
2024-02-08T15:39:06.8617420Z ==================================== RERUNS ====================================
2024-02-08T15:39:06.8618112Z _ TestNamedTensor.test_using_unseen_interned_string_bumps_refcount_permanently _
2024-02-08T15:39:06.8618743Z Traceback (most recent call last):
2024-02-08T15:39:06.8619752Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1400, in test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8620745Z     self.assertEqual(new_refcnt, old_refcnt + 1)
2024-02-08T15:39:06.8621778Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8622700Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8623131Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8623422Z 
2024-02-08T15:39:06.8623550Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8623948Z Absolute difference: 1
2024-02-08T15:39:06.8624338Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8624633Z 
2024-02-08T15:39:06.8624882Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8625802Z      python test/test_namedtensor.py -k test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8626403Z 
2024-02-08T15:39:06.8626718Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8627500Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8629595Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8631593Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8632208Z _ TestNamedTensor.test_using_unseen_interned_string_bumps_refcount_permanently _
2024-02-08T15:39:06.8632852Z Traceback (most recent call last):
2024-02-08T15:39:06.8633765Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1400, in test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8634759Z     self.assertEqual(new_refcnt, old_refcnt + 1)
2024-02-08T15:39:06.8635812Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8636719Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8637148Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8637434Z 
2024-02-08T15:39:06.8637574Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8637955Z Absolute difference: 1
2024-02-08T15:39:06.8638450Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8638747Z 
2024-02-08T15:39:06.8639011Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8639915Z      python test/test_namedtensor.py -k test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8640516Z 
2024-02-08T15:39:06.8640829Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8641626Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8643735Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8645939Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8646387Z =================================== FAILURES ===================================
2024-02-08T15:39:06.8647095Z _ TestNamedTensor.test_using_unseen_interned_string_bumps_refcount_permanently _
2024-02-08T15:39:06.8647742Z Traceback (most recent call last):
2024-02-08T15:39:06.8648661Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1400, in test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8649650Z     self.assertEqual(new_refcnt, old_refcnt + 1)
2024-02-08T15:39:06.8650813Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8651715Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8652148Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8652436Z 
2024-02-08T15:39:06.8652577Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8652958Z Absolute difference: 1
2024-02-08T15:39:06.8653361Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8653660Z 
2024-02-08T15:39:06.8653921Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8654832Z      python test/test_namedtensor.py -k test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8655418Z 
2024-02-08T15:39:06.8655732Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8656509Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8658621Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8660600Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8661682Z - generated xml file: /var/lib/jenkins/workspace/test/test-reports/python-pytest/test_namedtensor/test_namedtensor-7963d02eb6ac8314.xml -
2024-02-08T15:39:06.8662763Z =========================== short test summary info ============================
2024-02-08T15:39:06.8663976Z FAILED [0.0008s] test_namedtensor.py::TestNamedTensor::test_using_unseen_interned_string_bumps_refcount_permanently - AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8664839Z 
2024-02-08T15:39:06.8664969Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8665365Z Absolute difference: 1
2024-02-08T15:39:06.8665770Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8666067Z 
2024-02-08T15:39:06.8666327Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8667229Z      python test/test_namedtensor.py -k test_using_unseen_interned_string_bumps_refcount_permanently
2024-02-08T15:39:06.8667829Z 
2024-02-08T15:39:06.8668144Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8668840Z !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-02-08T15:39:06.8669550Z ================== 1 failed, 85 deselected, 2 rerun in 0.40s ===================
2024-02-08T15:39:06.8670063Z Got exit code 1
2024-02-08T15:39:06.8670338Z Retrying...
2024-02-08T15:39:06.8671106Z Test results will be stored in test-reports/python-pytest/test_namedtensor/test_namedtensor-5f208f7c5fdd7bf2.xml
2024-02-08T15:39:06.8672009Z ============================= test session starts ==============================
2024-02-08T15:39:06.8672885Z platform linux -- Python 3.12.1, pytest-7.3.2, pluggy-1.4.0 -- /opt/conda/envs/py_3.12/bin/python
2024-02-08T15:39:06.8673583Z cachedir: .pytest_cache
2024-02-08T15:39:06.8674458Z hypothesis profile 'pytorch_ci' -> database=None, max_examples=50, derandomize=True, suppress_health_check=[HealthCheck.too_slow]
2024-02-08T15:39:06.8675331Z rootdir: /var/lib/jenkins/workspace
2024-02-08T15:39:06.8675720Z configfile: pytest.ini
2024-02-08T15:39:06.8676471Z plugins: hypothesis-5.35.1, cpp-2.3.0, flakefinder-1.1.0, rerunfailures-13.0, xdist-3.3.1, xdoctest-1.1.0
2024-02-08T15:39:06.8677356Z collecting ... collected 87 items / 86 deselected / 1 selected
2024-02-08T15:39:06.8677920Z stepcurrent: skipping 86 already run items.
2024-02-08T15:39:06.8678344Z Running 1 items in this shard
2024-02-08T15:39:06.8678589Z 
2024-02-08T15:39:06.8679262Z test_namedtensor.py::TestNamedTensor::test_using_unseen_uninterned_string_refcounts ('RERUN', {'yellow': True}) [0.3669s] [100%]
2024-02-08T15:39:06.8680733Z test_namedtensor.py::TestNamedTensor::test_using_unseen_uninterned_string_refcounts ('RERUN', {'yellow': True}) [0.0010s] [100%]
2024-02-08T15:39:06.8681930Z test_namedtensor.py::TestNamedTensor::test_using_unseen_uninterned_string_refcounts FAILED [0.0008s] [100%]
2024-02-08T15:39:06.8682557Z 
2024-02-08T15:39:06.8682735Z ==================================== RERUNS ====================================
2024-02-08T15:39:06.8683407Z ________ TestNamedTensor.test_using_unseen_uninterned_string_refcounts _________
2024-02-08T15:39:06.8684033Z Traceback (most recent call last):
2024-02-08T15:39:06.8684871Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1422, in test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8686070Z     self.assertEqual(new_interned_refcnt, old_interned_refcnt + 1)
2024-02-08T15:39:06.8687221Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8688122Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8688558Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8688858Z 
2024-02-08T15:39:06.8688986Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8689381Z Absolute difference: 1
2024-02-08T15:39:06.8689764Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8690074Z 
2024-02-08T15:39:06.8690321Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8691150Z      python test/test_namedtensor.py -k test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8691666Z 
2024-02-08T15:39:06.8691983Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8692762Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8694869Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8696826Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8697407Z ________ TestNamedTensor.test_using_unseen_uninterned_string_refcounts _________
2024-02-08T15:39:06.8698029Z Traceback (most recent call last):
2024-02-08T15:39:06.8698882Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1422, in test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8699985Z     self.assertEqual(new_interned_refcnt, old_interned_refcnt + 1)
2024-02-08T15:39:06.8701132Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8702044Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8702462Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8702761Z 
2024-02-08T15:39:06.8702891Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8703286Z Absolute difference: 1
2024-02-08T15:39:06.8703706Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8704002Z 
2024-02-08T15:39:06.8704252Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8705079Z      python test/test_namedtensor.py -k test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8705591Z 
2024-02-08T15:39:06.8705918Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8706694Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8708803Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8710778Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8711309Z =================================== FAILURES ===================================
2024-02-08T15:39:06.8711975Z ________ TestNamedTensor.test_using_unseen_uninterned_string_refcounts _________
2024-02-08T15:39:06.8712598Z Traceback (most recent call last):
2024-02-08T15:39:06.8713447Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1422, in test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8714427Z     self.assertEqual(new_interned_refcnt, old_interned_refcnt + 1)
2024-02-08T15:39:06.8715571Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8716488Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8716918Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8717201Z 
2024-02-08T15:39:06.8717328Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8717723Z Absolute difference: 1
2024-02-08T15:39:06.8718118Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8718417Z 
2024-02-08T15:39:06.8718670Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8719496Z      python test/test_namedtensor.py -k test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8720004Z 
2024-02-08T15:39:06.8720328Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8721093Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8723194Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8725169Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8726456Z - generated xml file: /var/lib/jenkins/workspace/test/test-reports/python-pytest/test_namedtensor/test_namedtensor-5f208f7c5fdd7bf2.xml -
2024-02-08T15:39:06.8727525Z =========================== short test summary info ============================
2024-02-08T15:39:06.8728664Z FAILED [0.0008s] test_namedtensor.py::TestNamedTensor::test_using_unseen_uninterned_string_refcounts - AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8729469Z 
2024-02-08T15:39:06.8729597Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8729994Z Absolute difference: 1
2024-02-08T15:39:06.8730378Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8730815Z 
2024-02-08T15:39:06.8731066Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8731900Z      python test/test_namedtensor.py -k test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8732407Z 
2024-02-08T15:39:06.8732722Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8733420Z !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-02-08T15:39:06.8734046Z ================== 1 failed, 86 deselected, 2 rerun in 0.39s ===================
2024-02-08T15:39:06.8734548Z Got exit code 1
2024-02-08T15:39:06.8734821Z Retrying...
2024-02-08T15:39:06.8735606Z Test results will be stored in test-reports/python-pytest/test_namedtensor/test_namedtensor-273a326e65227189.xml
2024-02-08T15:39:06.8736506Z ============================= test session starts ==============================
2024-02-08T15:39:06.8737361Z platform linux -- Python 3.12.1, pytest-7.3.2, pluggy-1.4.0 -- /opt/conda/envs/py_3.12/bin/python
2024-02-08T15:39:06.8738060Z cachedir: .pytest_cache
2024-02-08T15:39:06.8738950Z hypothesis profile 'pytorch_ci' -> database=None, max_examples=50, derandomize=True, suppress_health_check=[HealthCheck.too_slow]
2024-02-08T15:39:06.8739803Z rootdir: /var/lib/jenkins/workspace
2024-02-08T15:39:06.8740192Z configfile: pytest.ini
2024-02-08T15:39:06.8740958Z plugins: hypothesis-5.35.1, cpp-2.3.0, flakefinder-1.1.0, rerunfailures-13.0, xdist-3.3.1, xdoctest-1.1.0
2024-02-08T15:39:06.8741917Z collecting ... collected 87 items / 86 deselected / 1 selected
2024-02-08T15:39:06.8742481Z stepcurrent: skipping 86 already run items.
2024-02-08T15:39:06.8742916Z Running 1 items in this shard
2024-02-08T15:39:06.8743151Z 
2024-02-08T15:39:06.8743823Z test_namedtensor.py::TestNamedTensor::test_using_unseen_uninterned_string_refcounts ('RERUN', {'yellow': True}) [0.3702s] [100%]
2024-02-08T15:39:06.8745214Z test_namedtensor.py::TestNamedTensor::test_using_unseen_uninterned_string_refcounts ('RERUN', {'yellow': True}) [0.0009s] [100%]
2024-02-08T15:39:06.8746417Z test_namedtensor.py::TestNamedTensor::test_using_unseen_uninterned_string_refcounts FAILED [0.0008s] [100%]
2024-02-08T15:39:06.8747040Z 
2024-02-08T15:39:06.8747231Z ==================================== RERUNS ====================================
2024-02-08T15:39:06.8747893Z ________ TestNamedTensor.test_using_unseen_uninterned_string_refcounts _________
2024-02-08T15:39:06.8748518Z Traceback (most recent call last):
2024-02-08T15:39:06.8749375Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1422, in test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8750352Z     self.assertEqual(new_interned_refcnt, old_interned_refcnt + 1)
2024-02-08T15:39:06.8751493Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8752408Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8752840Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8753124Z 
2024-02-08T15:39:06.8753249Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8753643Z Absolute difference: 1
2024-02-08T15:39:06.8754036Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8754330Z 
2024-02-08T15:39:06.8754580Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8755410Z      python test/test_namedtensor.py -k test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8755921Z 
2024-02-08T15:39:06.8756249Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8757015Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8759124Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8761155Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8761746Z ________ TestNamedTensor.test_using_unseen_uninterned_string_refcounts _________
2024-02-08T15:39:06.8762361Z Traceback (most recent call last):
2024-02-08T15:39:06.8763210Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1422, in test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8764205Z     self.assertEqual(new_interned_refcnt, old_interned_refcnt + 1)
2024-02-08T15:39:06.8765349Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8766442Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8766877Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8767163Z 
2024-02-08T15:39:06.8767307Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8767689Z Absolute difference: 1
2024-02-08T15:39:06.8768100Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8768398Z 
2024-02-08T15:39:06.8768657Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8769475Z      python test/test_namedtensor.py -k test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8769994Z 
2024-02-08T15:39:06.8770307Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8771180Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8773291Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8775255Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8775711Z =================================== FAILURES ===================================
2024-02-08T15:39:06.8776395Z ________ TestNamedTensor.test_using_unseen_uninterned_string_refcounts _________
2024-02-08T15:39:06.8777004Z Traceback (most recent call last):
2024-02-08T15:39:06.8777851Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1422, in test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8778850Z     self.assertEqual(new_interned_refcnt, old_interned_refcnt + 1)
2024-02-08T15:39:06.8779998Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8780901Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8781330Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8781613Z 
2024-02-08T15:39:06.8781755Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8782140Z Absolute difference: 1
2024-02-08T15:39:06.8782535Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8782831Z 
2024-02-08T15:39:06.8783095Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8783910Z      python test/test_namedtensor.py -k test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8784432Z 
2024-02-08T15:39:06.8784746Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8785523Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8787630Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8789611Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8790695Z - generated xml file: /var/lib/jenkins/workspace/test/test-reports/python-pytest/test_namedtensor/test_namedtensor-273a326e65227189.xml -
2024-02-08T15:39:06.8791854Z =========================== short test summary info ============================
2024-02-08T15:39:06.8792991Z FAILED [0.0008s] test_namedtensor.py::TestNamedTensor::test_using_unseen_uninterned_string_refcounts - AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8793789Z 
2024-02-08T15:39:06.8793919Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8794314Z Absolute difference: 1
2024-02-08T15:39:06.8794709Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8795007Z 
2024-02-08T15:39:06.8795257Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8796086Z      python test/test_namedtensor.py -k test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8796595Z 
2024-02-08T15:39:06.8796920Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8797619Z !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-02-08T15:39:06.8798241Z ================== 1 failed, 86 deselected, 2 rerun in 0.39s ===================
2024-02-08T15:39:06.8798754Z Got exit code 1
2024-02-08T15:39:06.8799025Z Retrying...
2024-02-08T15:39:06.8799791Z Test results will be stored in test-reports/python-pytest/test_namedtensor/test_namedtensor-451b6d3bc8aee7fd.xml
2024-02-08T15:39:06.8800687Z ============================= test session starts ==============================
2024-02-08T15:39:06.8801653Z platform linux -- Python 3.12.1, pytest-7.3.2, pluggy-1.4.0 -- /opt/conda/envs/py_3.12/bin/python
2024-02-08T15:39:06.8802341Z cachedir: .pytest_cache
2024-02-08T15:39:06.8803226Z hypothesis profile 'pytorch_ci' -> database=None, max_examples=50, derandomize=True, suppress_health_check=[HealthCheck.too_slow]
2024-02-08T15:39:06.8804094Z rootdir: /var/lib/jenkins/workspace
2024-02-08T15:39:06.8804466Z configfile: pytest.ini
2024-02-08T15:39:06.8805235Z plugins: hypothesis-5.35.1, cpp-2.3.0, flakefinder-1.1.0, rerunfailures-13.0, xdist-3.3.1, xdoctest-1.1.0
2024-02-08T15:39:06.8806367Z collecting ... collected 87 items / 86 deselected / 1 selected
2024-02-08T15:39:06.8806918Z stepcurrent: skipping 86 already run items.
2024-02-08T15:39:06.8807354Z Running 1 items in this shard
2024-02-08T15:39:06.8807602Z 
2024-02-08T15:39:06.8808282Z test_namedtensor.py::TestNamedTensor::test_using_unseen_uninterned_string_refcounts ('RERUN', {'yellow': True}) [0.3720s] [100%]
2024-02-08T15:39:06.8809670Z test_namedtensor.py::TestNamedTensor::test_using_unseen_uninterned_string_refcounts ('RERUN', {'yellow': True}) [0.0009s] [100%]
2024-02-08T15:39:06.8810849Z test_namedtensor.py::TestNamedTensor::test_using_unseen_uninterned_string_refcounts FAILED [0.0008s] [100%]
2024-02-08T15:39:06.8811489Z 
2024-02-08T15:39:06.8811668Z ==================================== RERUNS ====================================
2024-02-08T15:39:06.8812336Z ________ TestNamedTensor.test_using_unseen_uninterned_string_refcounts _________
2024-02-08T15:39:06.8812945Z Traceback (most recent call last):
2024-02-08T15:39:06.8813799Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1422, in test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8814791Z     self.assertEqual(new_interned_refcnt, old_interned_refcnt + 1)
2024-02-08T15:39:06.8815927Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8816832Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8817261Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8817549Z 
2024-02-08T15:39:06.8817689Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8818069Z Absolute difference: 1
2024-02-08T15:39:06.8818461Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8818757Z 
2024-02-08T15:39:06.8819017Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8819839Z      python test/test_namedtensor.py -k test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8820361Z 
2024-02-08T15:39:06.8820788Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8821572Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8823685Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8825643Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8826235Z ________ TestNamedTensor.test_using_unseen_uninterned_string_refcounts _________
2024-02-08T15:39:06.8826857Z Traceback (most recent call last):
2024-02-08T15:39:06.8827709Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1422, in test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8828690Z     self.assertEqual(new_interned_refcnt, old_interned_refcnt + 1)
2024-02-08T15:39:06.8829831Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8830743Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8831159Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8831454Z 
2024-02-08T15:39:06.8831585Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8831981Z Absolute difference: 1
2024-02-08T15:39:06.8832472Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8832784Z 
2024-02-08T15:39:06.8833031Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8833856Z      python test/test_namedtensor.py -k test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8834366Z 
2024-02-08T15:39:06.8834695Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8835463Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8837578Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8839558Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8840007Z =================================== FAILURES ===================================
2024-02-08T15:39:06.8840677Z ________ TestNamedTensor.test_using_unseen_uninterned_string_refcounts _________
2024-02-08T15:39:06.8841299Z Traceback (most recent call last):
2024-02-08T15:39:06.8842144Z   File "/var/lib/jenkins/workspace/test/test_namedtensor.py", line 1422, in test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8843186Z     self.assertEqual(new_interned_refcnt, old_interned_refcnt + 1)
2024-02-08T15:39:06.8844334Z   File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/testing/_internal/common_utils.py", line 3582, in assertEqual
2024-02-08T15:39:06.8845251Z     raise error_metas.pop()[0].to_error(
2024-02-08T15:39:06.8845850Z AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8846154Z 
2024-02-08T15:39:06.8846280Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8846677Z Absolute difference: 1
2024-02-08T15:39:06.8847063Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8847371Z 
2024-02-08T15:39:06.8847623Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8848451Z      python test/test_namedtensor.py -k test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8848961Z 
2024-02-08T15:39:06.8849292Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8850060Z ----------------------------- Captured stderr call -----------------------------
2024-02-08T15:39:06.8852160Z /var/lib/jenkins/workspace/test/test_namedtensor.py:21: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /var/lib/jenkins/workspace/c10/core/TensorImpl.h:1919.)
2024-02-08T15:39:06.8854242Z   x = torch.empty(2, names=(name,))
2024-02-08T15:39:06.8855340Z - generated xml file: /var/lib/jenkins/workspace/test/test-reports/python-pytest/test_namedtensor/test_namedtensor-451b6d3bc8aee7fd.xml -
2024-02-08T15:39:06.8856414Z =========================== short test summary info ============================
2024-02-08T15:39:06.8857546Z FAILED [0.0008s] test_namedtensor.py::TestNamedTensor::test_using_unseen_uninterned_string_refcounts - AssertionError: Scalars are not equal!
2024-02-08T15:39:06.8858343Z 
2024-02-08T15:39:06.8858483Z Expected 4294967296 but got 4294967295.
2024-02-08T15:39:06.8858866Z Absolute difference: 1
2024-02-08T15:39:06.8859259Z Relative difference: 2.3283064365386963e-10
2024-02-08T15:39:06.8859561Z 
2024-02-08T15:39:06.8859822Z To execute this test, run the following from the base repo dir:
2024-02-08T15:39:06.8860646Z      python test/test_namedtensor.py -k test_using_unseen_uninterned_string_refcounts
2024-02-08T15:39:06.8861148Z 
2024-02-08T15:39:06.8861460Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2024-02-08T15:39:06.8862157Z !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-02-08T15:39:06.8862859Z ================== 1 failed, 86 deselected, 2 rerun in 0.40s ===================
2024-02-08T15:39:06.8863366Z Got exit code 1
2024-02-08T15:39:06.8863639Z Retrying...
2024-02-08T15:39:06.8864412Z Test results will be stored in test-reports/python-pytest/test_namedtensor/test_namedtensor-4e56a54f277f4461.xml
2024-02-08T15:39:06.8865291Z ============================= test session starts ==============================
2024-02-08T15:39:06.8866159Z platform linux -- Python 3.12.1, pytest-7.3.2, pluggy-1.4.0 -- /opt/conda/envs/py_3.12/bin/python
2024-02-08T15:39:06.8866858Z cachedir: .pytest_cache
2024-02-08T15:39:06.8867733Z hypothesis profile 'pytorch_ci' -> database=None, max_examples=50, derandomize=True, suppress_health_check=[HealthCheck.too_slow]
2024-02-08T15:39:06.8868597Z rootdir: /var/lib/jenkins/workspace
2024-02-08T15:39:06.8868978Z configfile: pytest.ini
2024-02-08T15:39:06.8869744Z plugins: hypothesis-5.35.1, cpp-2.3.0, flakefinder-1.1.0, rerunfailures-13.0, xdist-3.3.1, xdoctest-1.1.0
2024-02-08T15:39:06.8870610Z collecting ... collected 87 items / 87 deselected / 0 selected
2024-02-08T15:39:06.8871185Z stepcurrent: skipping 87 already run items.
2024-02-08T15:39:06.8871621Z Running 0 items in this shard
2024-02-08T15:39:06.8871857Z 
2024-02-08T15:39:06.8872668Z - generated xml file: /var/lib/jenkins/workspace/test/test-reports/python-pytest/test_namedtensor/test_namedtensor-4e56a54f277f4461.xml -
2024-02-08T15:39:06.8873738Z ============================ 87 deselected in 0.01s ============================
2024-02-08T15:39:06.8875493Z The following tests failed consistently: ['test/test_namedtensor.py::TestNamedTensor::test_using_unseen_interned_string_bumps_refcount_permanently', 'test/test_namedtensor.py::TestNamedTensor::test_using_unseen_uninterned_string_refcounts']
2024-02-08T15:39:06.8876780Z 
2024-02-08T15:39:06.8877594Z FINISHED PRINTING LOG FILE of test_namedtensor 1/1 (/var/lib/jenkins/workspace/test/test-reports/test_namedtensor_1.1_jybg9grv_toprint.log)
2024-02-08T15:39:06.8878434Z 
```

cc @mruberry @ZainRizvi @zou3519 @albanD 




### Versions

2.3.0 nightly