Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix dot(csr.T, dns)=dns can't be called on cpu and gpu (#11087)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaotaoChen authored and eric-haibin-lin committed May 31, 2018
1 parent 9feecce commit 8be4b8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/operator/tensor/dot-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 8be4b8e

Please sign in to comment.