Skip to content

[PT_BREAK] [numpy] torch.{all, any} : Extend Dtype Support #2585

Closed
@kshitij12345

Description

@kshitij12345

Reference PR: pytorch/pytorch#44790

https://app.circleci.com/pipelines/github/pytorch/pytorch/225737/workflows/087f881a-821b-4470-ae21-71ce3add5a10/jobs/8146058

Oct 11 18:11:58 ======================================================================
Oct 11 18:11:58 FAIL [0.787s]: test_all_any_vs_numpy_xla_float32 (__main__.TestTorchDeviceTypeXLA)
Oct 11 18:11:58 ----------------------------------------------------------------------
Oct 11 18:11:58 Traceback (most recent call last):
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_device_type.py", line 273, in instantiated_test
Oct 11 18:11:58     result = test_fn(self, *args)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19141, in test_all_any_vs_numpy
Oct 11 18:11:58     _test_all_any(x)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19126, in _test_all_any
Oct 11 18:11:58     self.compare_with_numpy(torch.all, np.all, x)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 948, in compare_with_numpy
Oct 11 18:11:58     self.assertEqual(np_result, torch_result, **kwargs)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1069, in assertEqual
Oct 11 18:11:58     exact_dtype=exact_dtype, exact_device=exact_device)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1176, in assertEqual
Oct 11 18:11:58     super().assertEqual(x, y, msg=msg)
Oct 11 18:11:58 AssertionError: True != -79.4682388305664
Oct 11 18:11:58 
Oct 11 18:11:58 ======================================================================
Oct 11 18:11:58 FAIL [0.714s]: test_all_any_vs_numpy_xla_float64 (__main__.TestTorchDeviceTypeXLA)
Oct 11 18:11:58 ----------------------------------------------------------------------
Oct 11 18:11:58 Traceback (most recent call last):
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_device_type.py", line 273, in instantiated_test
Oct 11 18:11:58     result = test_fn(self, *args)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19141, in test_all_any_vs_numpy
Oct 11 18:11:58     _test_all_any(x)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19126, in _test_all_any
Oct 11 18:11:58     self.compare_with_numpy(torch.all, np.all, x)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 948, in compare_with_numpy
Oct 11 18:11:58     self.assertEqual(np_result, torch_result, **kwargs)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1069, in assertEqual
Oct 11 18:11:58     exact_dtype=exact_dtype, exact_device=exact_device)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1176, in assertEqual
Oct 11 18:11:58     super().assertEqual(x, y, msg=msg)
Oct 11 18:11:58 AssertionError: True != -0.05877280009131995
Oct 11 18:11:58 
Oct 11 18:11:58 ======================================================================
Oct 11 18:11:58 FAIL [0.196s]: test_all_any_vs_numpy_xla_int16 (__main__.TestTorchDeviceTypeXLA)
Oct 11 18:11:58 ----------------------------------------------------------------------
Oct 11 18:11:58 Traceback (most recent call last):
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_device_type.py", line 273, in instantiated_test
Oct 11 18:11:58     result = test_fn(self, *args)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19141, in test_all_any_vs_numpy
Oct 11 18:11:58     _test_all_any(x)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19126, in _test_all_any
Oct 11 18:11:58     self.compare_with_numpy(torch.all, np.all, x)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 948, in compare_with_numpy
Oct 11 18:11:58     self.assertEqual(np_result, torch_result, **kwargs)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1069, in assertEqual
Oct 11 18:11:58     exact_dtype=exact_dtype, exact_device=exact_device)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1176, in assertEqual
Oct 11 18:11:58     super().assertEqual(x, y, msg=msg)
Oct 11 18:11:58 AssertionError: True != 46
Oct 11 18:11:58 
Oct 11 18:11:58 ======================================================================
Oct 11 18:11:58 FAIL [0.190s]: test_all_any_vs_numpy_xla_int32 (__main__.TestTorchDeviceTypeXLA)
Oct 11 18:11:58 ----------------------------------------------------------------------
Oct 11 18:11:58 Traceback (most recent call last):
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_device_type.py", line 273, in instantiated_test
Oct 11 18:11:58     result = test_fn(self, *args)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19141, in test_all_any_vs_numpy
Oct 11 18:11:58     _test_all_any(x)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19126, in _test_all_any
Oct 11 18:11:58     self.compare_with_numpy(torch.all, np.all, x)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 948, in compare_with_numpy
Oct 11 18:11:58     self.assertEqual(np_result, torch_result, **kwargs)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1069, in assertEqual
Oct 11 18:11:58     exact_dtype=exact_dtype, exact_device=exact_device)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1176, in assertEqual
Oct 11 18:11:58     super().assertEqual(x, y, msg=msg)
Oct 11 18:11:58 AssertionError: True != 46
Oct 11 18:11:58 
Oct 11 18:11:58 ======================================================================
Oct 11 18:11:58 FAIL [0.191s]: test_all_any_vs_numpy_xla_int64 (__main__.TestTorchDeviceTypeXLA)
Oct 11 18:11:58 ----------------------------------------------------------------------
Oct 11 18:11:58 Traceback (most recent call last):
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_device_type.py", line 273, in instantiated_test
Oct 11 18:11:58     result = test_fn(self, *args)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19141, in test_all_any_vs_numpy
Oct 11 18:11:58     _test_all_any(x)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19126, in _test_all_any
Oct 11 18:11:58     self.compare_with_numpy(torch.all, np.all, x)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 948, in compare_with_numpy
Oct 11 18:11:58     self.assertEqual(np_result, torch_result, **kwargs)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1069, in assertEqual
Oct 11 18:11:58     exact_dtype=exact_dtype, exact_device=exact_device)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1176, in assertEqual
Oct 11 18:11:58     super().assertEqual(x, y, msg=msg)
Oct 11 18:11:58 AssertionError: True != 46
Oct 11 18:11:58 
Oct 11 18:11:58 ======================================================================
Oct 11 18:11:58 FAIL [0.195s]: test_all_any_vs_numpy_xla_int8 (__main__.TestTorchDeviceTypeXLA)
Oct 11 18:11:58 ----------------------------------------------------------------------
Oct 11 18:11:58 Traceback (most recent call last):
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_device_type.py", line 273, in instantiated_test
Oct 11 18:11:58     result = test_fn(self, *args)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19141, in test_all_any_vs_numpy
Oct 11 18:11:58     _test_all_any(x)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19126, in _test_all_any
Oct 11 18:11:58     self.compare_with_numpy(torch.all, np.all, x)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 948, in compare_with_numpy
Oct 11 18:11:58     self.assertEqual(np_result, torch_result, **kwargs)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1069, in assertEqual
Oct 11 18:11:58     exact_dtype=exact_dtype, exact_device=exact_device)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1176, in assertEqual
Oct 11 18:11:58     super().assertEqual(x, y, msg=msg)
Oct 11 18:11:58 AssertionError: True != 46
Oct 11 18:11:58 
Oct 11 18:11:58 ======================================================================
Oct 11 18:11:58 FAIL [0.170s]: test_all_any_vs_numpy_xla_uint8 (__main__.TestTorchDeviceTypeXLA)
Oct 11 18:11:58 ----------------------------------------------------------------------
Oct 11 18:11:58 Traceback (most recent call last):
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_device_type.py", line 273, in instantiated_test
Oct 11 18:11:58     result = test_fn(self, *args)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19141, in test_all_any_vs_numpy
Oct 11 18:11:58     _test_all_any(x)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/../../test/test_torch.py", line 19126, in _test_all_any
Oct 11 18:11:58     self.compare_with_numpy(torch.all, np.all, x)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 948, in compare_with_numpy
Oct 11 18:11:58     self.assertEqual(np_result, torch_result, **kwargs)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1069, in assertEqual
Oct 11 18:11:58     exact_dtype=exact_dtype, exact_device=exact_device)
Oct 11 18:11:58   File "/var/lib/jenkins/workspace/xla/test/pytorch_test_base.py", line 549, in assertEqual
Oct 11 18:11:58     return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
Oct 11 18:11:58   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 1176, in assertEqual
Oct 11 18:11:58     super().assertEqual(x, y, msg=msg)
Oct 11 18:11:58 AssertionError: True != 46
Oct 11 18:11:58 
Oct 11 18:11:58 ----------------------------------------------------------------------
Oct 11 18:11:58 Ran 1757 tests in 1336.565s
Oct 11 18:11:58 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions