anirudh2290 commented on a change in pull request #8938: Add operator for
dot(dns, csr) = csr
URL: https://github.com/apache/incubator-mxnet/pull/8938#discussion_r156546520
##########
File path: src/operator/tensor/dot-inl.h
##########
@@ -228,8 +231,16 @@ inline bool DotForwardInferStorageType(const
nnvm::NodeAttrs& attrs,
if (!dispatched && lhs_stype == kCSRStorage && rhs_rsp_or_dns &&
!param.transpose_a && !param.transpose_b) {
// csr, rsp/dns -> dns
- dispatched = storage_type_assign(&out_stype, kDefaultStorage,
- dispatch_mode, DispatchMode::kFComputeEx);
+ dispatched = storage_type_assign(&out_stype, kDefaultStorage,
dispatch_mode,
+ DispatchMode::kFComputeEx);
+ }
+ if (!dispatched && lhs_stype == kDefaultStorage && rhs_stype == kCSRStorage
&&
+ !param.transpose_a && !param.transpose_b) {
+ // dns, csr -> csr
+ if (dev_mask == mshadow::cpu::kDevMask) {
+ dispatched = storage_type_assign(&out_stype, kCSRStorage, dispatch_mode,
+ DispatchMode::kFComputeEx);
Review comment:
Thanks! Fixed.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services