Skip to content

Commit

Permalink
Fix a bug in pooling.
Browse files Browse the repository at this point in the history
  • Loading branch information
zheng-da committed Feb 2, 2018
1 parent 6222162 commit 4742ad5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/operator/nn/pooling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,9 @@ inline static bool PoolingStorageType(const nnvm::NodeAttrs &attrs,
return storage_type_assign(out_attrs, mxnet::kDefaultStorage,
dispatch_mode, DispatchMode::kFComputeEx);
}
#endif
#else
CHECK_EQ(out_attrs->size(), 1);
#endif
return storage_type_assign(out_attrs, mxnet::kDefaultStorage,
dispatch_mode, DispatchMode::kFCompute);
}
Expand All @@ -299,8 +300,9 @@ inline static bool BackwardPoolingStorageType(const nnvm::NodeAttrs &attrs,
return storage_type_assign(out_attrs, mxnet::kDefaultStorage,
dispatch_mode, DispatchMode::kFComputeEx);
}
#endif
#else
CHECK_EQ(in_attrs->size(), 3);
#endif
return storage_type_assign(out_attrs, mxnet::kDefaultStorage,
dispatch_mode, DispatchMode::kFCompute);
}
Expand Down

0 comments on commit 4742ad5

Please sign in to comment.