message: Port bias reorder code to MKL-DNN v1.x
diff: @@ -1602,24 +1602,24 @@ class MklQuantizedConv2DOp
  } else {
  bias_attr.set_output_scales(1, scales);
  }
  - auto bias_pd =
  - memory::primitive_desc({{static_cast<int>(bias_tensor.NumElements())},
  - MklDnnType<Tbias>(),
  - memory::format::x},
  - this->cpu_engine_);
  + auto bias_md =
  + MEMORY_PD_CONSTRUCTOR(static_cast<int>(bias_tensor.NumElements()),
  + Tbias, x, this->cpu_engine_);
  void* bias_buf = static_cast<void*>(
  const_cast<Tbias*>(bias_tensor.flat<Tbias>().data()));
  - input_bias_ = new memory(bias_pd, bias_buf);
  - scaled_bias_ = new memory(conv_fwd_pd->bias_primitive_desc());
  - auto reorder_desc = mkldnn::reorder::primitive_desc(
  - input_bias_->get_primitive_desc(), scaled_bias_->get_primitive_desc(),
  + input_bias_ =
  + new MEMORY_CONSTRUCTOR(bias_md, this->cpu_engine_, bias_buf);
  + scaled_bias_ = new MEMORY_CONSTRUCTOR_WITHOUT_DATA(
  + conv_fwd_pd->PRIMITIVE_DESC_BIAS, this->cpu_engine_);
  + auto reorder_desc = REORDER_PD_CONSTRUCTOR_WITH_ATTR(
  + input_bias_->GET_DESC, scaled_bias_->GET_DESC, this->cpu_engine_,
  bias_attr);
  - net.push_back(mkldnn::reorder(reorder_desc, *input_bias_, *scaled_bias_));
  - stream(stream::kind::eager).submit(net).wait();
  - Tbias *bias_data = reinterpret_cast<Tbias*>(scaled_bias_->get_data_handle());
  + CreateAndExecuteReorder(reorder_desc, *input_bias_, *scaled_bias_,
  + this->cpu_engine_);
  - if (!is_bias_const_) return bias_data;
  + Tbias *bias_data = reinterpret_cast<Tbias*>(scaled_bias_->get_data_handle());
  + if (!is_bias_const_) bias_data;
  CacheBias(context, conv_fwd_pd, bias_data, scaled_bias_);
  }
  