Skip to content

[riscv64] TestTorchDeviceTypeCPU.test_bytes_to_scalar_cpu_complex64: AssertionError: Scalars are not equal #6

@yuzibo

Description

@yuzibo

🐛 Describe the bug

=================================== FAILURES ===================================
__________ TestTorchDeviceTypeCPU.test_bytes_to_scalar_cpu_complex64 ___________
Traceback (most recent call last):
  File "/home/jenkins/pytorch/test/test_torch.py", line 132, in test_bytes_to_scalar
    self.assertEqual(scalar.storage().untyped().tolist(), bytes_list)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jenkins/pip/lib/python3.13/site-packages/torch/testing/_internal/common_utils.py", line 4445, in assertEqual
    raise error_metas.pop()[0].to_error(  # type: ignore[index]
    ...<4 lines>...
    )
AssertionError: Scalars are not equal!

Expected 69 but got 0.
Absolute difference: 69
Relative difference: 1.0

The failure occurred for item [0]

To execute this test, run the following from the base repo dir:
    python test/test_torch.py TestTorchDeviceTypeCPU.test_bytes_to_scalar_cpu_complex64

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
=========================== short test summary info ============================
FAILED [0.0196s] test_torch.py::TestTorchDeviceTypeCPU::test_bytes_to_scalar_cpu_complex64
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!

===== shard_0_ci.log =====

=================================== FAILURES ===================================
__________ TestTorchDeviceTypeCPU.test_bytes_to_scalar_cpu_complex64 ___________
Traceback (most recent call last):
  File "/home/jenkins/pytorch/test/test_torch.py", line 132, in test_bytes_to_scalar
    self.assertEqual(scalar.storage().untyped().tolist(), bytes_list)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jenkins/pip/lib/python3.13/site-packages/torch/testing/_internal/common_utils.py", line 4445, in assertEqual
    raise error_metas.pop()[0].to_error(  # type: ignore[index]
    ...<4 lines>...
    )
AssertionError: Scalars are not equal!

Expected 69 but got 0.
Absolute difference: 69
Relative difference: 1.0

The failure occurred for item [0]

To execute this test, run the following from the base repo dir:
    python test/test_torch.py TestTorchDeviceTypeCPU.test_bytes_to_scalar_cpu_complex64

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
----------------------------- Captured stderr call -----------------------------
/home/jenkins/pytorch/test/test_torch.py:132: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  self.assertEqual(scalar.storage().untyped().tolist(), bytes_list)
=========================== short test summary info ============================
FAILED [0.0197s] test_torch.py::TestTorchDeviceTypeCPU::test_bytes_to_scalar_cpu_complex64
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!

===== shard_0_ci.log =====

=================================== FAILURES ===================================
__________ TestTorchDeviceTypeCPU.test_bytes_to_scalar_cpu_complex64 ___________
Traceback (most recent call last):
  File "/home/jenkins/pytorch/test/test_torch.py", line 132, in test_bytes_to_scalar
    self.assertEqual(scalar.storage().untyped().tolist(), bytes_list)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jenkins/pip/lib/python3.13/site-packages/torch/testing/_internal/common_utils.py", line 4445, in assertEqual
    raise error_metas.pop()[0].to_error(  # type: ignore[index]
    ...<4 lines>...
    )
AssertionError: Scalars are not equal!

Expected 69 but got 0.
Absolute difference: 69
Relative difference: 1.0

The failure occurred for item [0]

To execute this test, run the following from the base repo dir:
    python test/test_torch.py TestTorchDeviceTypeCPU.test_bytes_to_scalar_cpu_complex64

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
----------------------------- Captured stderr call -----------------------------
/home/jenkins/pytorch/test/test_torch.py:132: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  self.assertEqual(scalar.storage().untyped().tolist(), bytes_list)
=========================== short test summary info ============================
FAILED [0.0199s] test_torch.py::TestTorchDeviceTypeCPU::test_bytes_to_scalar_cpu_complex64
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!

See the log

Versions

Same with #5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions