DickJC123 commented on issue #9674: Fix test_sparse_operator failures due to
out-of-bounds ref.
URL: https://github.com/apache/incubator-mxnet/pull/9674#issuecomment-362760136
To prove that the prior code referenced uninitialized data, substitute the
following 4 lines for the single line the PR changed:
```
bool will_reference_axis_first_element = !dispatched && in_stype ==
kCSRStorage;
if (will_reference_axis_first_element && param.axis.ndim() == 0)
LOG(FATAL) << "Code is about to make out-of-bounds reference of
param.axis[0]";
if (!dispatched && in_stype == kCSRStorage &&
```
Then re-built mxnet and run:
```
nosetests --verbose
tests/python/unittest/test_sparse_operator.py:test_sparse_storage_fallback
```
For me, the fatal exception is thrown.
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org
With regards,
Apache Git Services