piiswrong closed pull request #9674: Fix test_sparse_operator failures due to out-of-bounds ref. URL: https://github.com/apache/incubator-mxnet/pull/9674
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/src/operator/tensor/broadcast_reduce_op.h b/src/operator/tensor/broadcast_reduce_op.h index 76c78be35a..02d48b4697 100644 --- a/src/operator/tensor/broadcast_reduce_op.h +++ b/src/operator/tensor/broadcast_reduce_op.h @@ -362,7 +362,7 @@ inline bool SumOpForwardInferStorageType(const nnvm::NodeAttrs& attrs, DispatchMode::kFCompute); } - if (!dispatched && in_stype == kCSRStorage && + if (!dispatched && in_stype == kCSRStorage && param.axis.ndim() == 1 && (param.axis[0] == 0 || param.axis[0] == 1) && !param.keepdims && !param.exclude) { // If input is csr and axis is 0 or 1, and neither of keepdims or exclude ---------------------------------------------------------------- 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