From 608447bfd5f1f5ece13a44f357a339e3a0c9e5d9 Mon Sep 17 00:00:00 2001 From: Adam <38704900+grygielski@users.noreply.github.com> Date: Mon, 17 Feb 2020 05:39:55 +0100 Subject: [PATCH] Update MKLDNN to v1.2 (#22521) --- cmake/external/mkldnn.cmake | 2 +- paddle/fluid/operators/mkldnn/fc_mkldnn_op.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/external/mkldnn.cmake b/cmake/external/mkldnn.cmake index aa0f61e75c..da8343f3c8 100644 --- a/cmake/external/mkldnn.cmake +++ b/cmake/external/mkldnn.cmake @@ -20,7 +20,7 @@ SET(MKLDNN_SOURCE_DIR ${THIRD_PARTY_PATH}/mkldnn/src/extern_mkldnn) SET(MKLDNN_INSTALL_DIR ${THIRD_PARTY_PATH}/install/mkldnn) SET(MKLDNN_INC_DIR "${MKLDNN_INSTALL_DIR}/include" CACHE PATH "mkldnn include directory." FORCE) SET(MKLDNN_REPOSITORY https://github.com/intel/mkl-dnn.git) -SET(MKLDNN_TAG 52c3052df8ec1d5b8b45cb6c350a952840eabd42) +SET(MKLDNN_TAG 75d0b1a7f3586c212e37acebbb8acd221cee7216) # Introduce variables: # * CMAKE_INSTALL_LIBDIR diff --git a/paddle/fluid/operators/mkldnn/fc_mkldnn_op.cc b/paddle/fluid/operators/mkldnn/fc_mkldnn_op.cc index d45567bd52..c4436ca05b 100644 --- a/paddle/fluid/operators/mkldnn/fc_mkldnn_op.cc +++ b/paddle/fluid/operators/mkldnn/fc_mkldnn_op.cc @@ -288,7 +288,7 @@ class FCPrimitiveFactory { // becuase we perform per-output-channel quantization int mask = CreateMask(0, scale_data.size() > 1); attributes.set_output_scales(mask, scale_data); - auto reorder = mkldnn::reorder({src_mem, dst_mem, attributes}); + auto reorder = mkldnn::reorder(src_mem, dst_mem, attributes); mkldnn::stream astream(engine_); reorder.execute(astream, -- GitLab