Skip to content

Commit

Permalink
Fix a bug in FlattenStorageType.
Browse files Browse the repository at this point in the history
  • Loading branch information
zheng-da committed Jan 17, 2018
1 parent 28d8cca commit 8706b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operator/tensor/matrix_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ static inline bool FlattenStorageType(const nnvm::NodeAttrs& attrs,
std::vector<int> *out_attrs) {
CHECK_EQ(in_attrs->size(), 1);
CHECK_EQ(out_attrs->size(), 1);
bool ret = ElemwiseStorageType<1, 1, false, true, true>(attrs, dev_mask, dispatch_mode,
in_attrs, out_attrs);
bool ret = ElemwiseStorageType<1, 1, false, false, false>(attrs, dev_mask, dispatch_mode,
in_attrs, out_attrs);
#if MXNET_USE_MKLDNN == 1
if (dev_mask == mshadow::cpu::kDevMask
&& in_attrs->at(0) == kDefaultStorage
Expand Down

0 comments on commit 8706b9c

Please sign in to comment.