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

Commit

Permalink
use data_type()
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaineBao committed Mar 25, 2020
1 parent 32f8700 commit dc255c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/operator/nn/mkldnn/mkldnn_pooling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
namespace mxnet {
namespace op {

// This can be replaced by mkldnn::memory::desc::data_type() after 1.2 release
static inline mkldnn::memory::data_type get_data_type(const mkldnn::memory::desc &md) {
return static_cast<mkldnn::memory::data_type>(md.data.data_type);
return static_cast<mkldnn::memory::data_type>(md.data_type());
}

void MKLDNNPoolingFwd::Init(const mxnet::NDArray &input, const mxnet::NDArray &output,
Expand Down

0 comments on commit dc255c7

Please sign in to comment.