huangzhiyuan commented on a change in pull request #13730: Add mkldnn OP for
slice
URL: https://github.com/apache/incubator-mxnet/pull/13730#discussion_r247311040
##########
File path: src/operator/tensor/matrix_op-inl.h
##########
@@ -432,9 +429,18 @@ inline bool SliceForwardInferStorageType(const
nnvm::NodeAttrs& attrs,
&& (!param.step[0].has_value() || param.step[0].value() == 1)) {
trivial_step = true;
}
- if (!dispatched && in_stype == kDefaultStorage) {
+
+ if (in_stype == kDefaultStorage) {
+#if MXNET_USE_MKLDNN == 1
+ if (dev_mask == Context::kCPU && MKLDNNEnvSet() &&
SupportMKLDNNSlice(param)) {
Review comment:
Done
----------------------------------------------------------------
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