Open
Description
🐛 Bug
The dynamic version of sym_sizes_custom
causes size mismatch failures.
======================================================================
FAIL: test_reference_eager_median_xla_int64 (__main__.TestOpInfoXLA)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/torch/testing/_internal/common_device_type.py", line 377, in instantiated_test
result = test(self, **param_kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/testing/_internal/common_device_type.py", line 814, in test_wrapper
return test(*args, **kwargs)
File "/workspace/pytorch/xla/test/test_ops.py", line 411, in test_reference_eager
self.compare_with_eager_reference(op, sample_input)
File "/workspace/pytorch/xla/test/test_ops.py", line 402, in compare_with_eager_reference
self.assertEqual(actual, expected, exact_dtype=True, exact_device=False)
File "/workspace/pytorch/xla/test/pytorch_test_base.py", line 629, in assertEqual
return DeviceTypeTestBase.assertEqual(self, x, y, *args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/testing/_internal/common_utils.py", line 2392, in assertEqual
msg=(lambda generated_msg: f"{generated_msg} : {msg}") if isinstance(msg, str) and self.longMessage else msg,
File "/opt/conda/lib/python3.7/site-packages/torch/testing/_comparison.py", line 1093, in assert_equal
raise error_metas[0].to_error(msg)
AssertionError: The values for attribute 'shape' do not match: torch.Size([0]) != torch.Size([]).
The failure occurred for item [0]