Zha0q1 opened a new pull request #19070:
URL: https://github.com/apache/incubator-mxnet/pull/19070
This pr fixes a minor indexing issue with BinaryBoardcastShape
it used to error out when we need to for example add two tensors of
different shapes together
```
MXNetError: Check failed: dim_size >= -1 (-2147483648 vs. -1) : shape dim
size must be >= -1, while received -2147483648
```
Updated test case as well
```
ubuntu@ip-172-31-38-169:~/incubator-mxnet$ pytest
tests/nightly/test_np_large_array.py::test_binary_broadcast
/home/ubuntu/anaconda3/lib/python3.7/importlib/_bootstrap.py:219:
RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility.
Expected 192 from C header, got 216 from PyObject
return f(*args, **kwds)
/home/ubuntu/anaconda3/lib/python3.7/importlib/_bootstrap.py:219:
RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility.
Expected 192 from C header, got 216 from PyObject
return f(*args, **kwds)
/home/ubuntu/anaconda3/lib/python3.7/importlib/_bootstrap.py:219:
RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility.
Expected 192 from C header, got 216 from PyObject
return f(*args, **kwds)
============================================ test session starts
=============================================
platform linux -- Python 3.7.7, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
rootdir: /home/ubuntu/incubator-mxnet, inifile: pytest.ini
plugins: remotedata-0.3.2, openfiles-0.4.0, astropy-header-0.1.2,
hypothesis-5.8.3, arraydiff-0.3, doctestplus-0.5.0
collected 1 item
tests/nightly/test_np_large_array.py .
[100%]
============================================= 1 passed in 8.35s
============================================
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]