Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kshitij12345 opened this issue Oct 29, 2020 · 0 comments · Fixed by #2590
Closed

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

kshitij12345 opened this issue Oct 29, 2020 · 0 comments · Fixed by #2590
Assignees

Comments

@kshitij12345
Copy link
Contributor

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 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants