eric-haibin-lin closed pull request #11087: fix dot(csr.T, dns)=dns can't be called on cpu and gpu URL: https://github.com/apache/incubator-mxnet/pull/11087
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/dot-inl.h b/src/operator/tensor/dot-inl.h index 2c9a483567f..ffdb706e5e3 100644 --- a/src/operator/tensor/dot-inl.h +++ b/src/operator/tensor/dot-inl.h @@ -246,6 +246,10 @@ inline bool DotForwardInferStorageType(const nnvm::NodeAttrs& attrs, if (target_stype == kRowSparseStorage) { dispatched = storage_type_assign(&out_stype, kRowSparseStorage, dispatch_mode, DispatchMode::kFComputeEx); + // csr.T, rsp/dns -> dns + } else if (target_stype == kDefaultStorage) { + dispatched = storage_type_assign(&out_stype, kDefaultStorage, dispatch_mode, + DispatchMode::kFComputeEx); } } if (!dispatched && lhs_stype == kCSRStorage && rhs_rsp_or_dns && ---------------------------------------------------------------- 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