message: [Intel MKL] reverted the commit which fixes for Fixed a bug in mkl_conv2d constant filter caching because it causes performance regression in a few models
diff: @@ -792,8 +792,7 @@ class MklConvOp : public OpKernel {
  // Tensorflow format to MKL format by caching the filter when it is
  // converted for the first time. This cached filter can then be reused
  // in subsequent iterations.
  - bool do_cache_filter = src_dims[MklDnnDims::Dim_N] > kSmallBatchSize;
  - if (is_filter_const_ && do_cache_filter) {
  + if (is_filter_const_) {
  if (IsFilterCacheEmpty(context)) {
  // Cache filter if it is not already cached.
  CacheFilter(context, conv_fwd_pd, filter_data, filter_tensor,
  @@ -806,13 +805,6 @@ class MklConvOp : public OpKernel {
  filter_data = GetCachedFilter(
  context, GET_WEIGHTS_FORMAT_FROM_OP_PD(conv_fwd_pd, conv_fwd));
  is_filter_cached = (filter_data != nullptr);
  - if (filter_out_tensor != nullptr) {
  - Tfilter* filter_out_tensor_buf =
  - static_cast<Tfilter*>(const_cast<Tfilter*>(
  - filter_out_tensor->flat<Tfilter>().data()));
  - memcpy(filter_out_tensor_buf, filter_data,
  - filter_out_tensor->AllocatedBytes());
  - }
  }
  if (!is_filter_cached) {
  filter.SetUsrMem(filter_md, &filter_tensor);
  