From 80472116d1ccef136bd538935ca1da695266009d Mon Sep 17 00:00:00 2001 From: Sylwester Fraczek Date: Tue, 21 Mar 2023 17:38:10 +0100 Subject: [PATCH] remove duplicate mkldnn_data_type (#51598) --- paddle/fluid/framework/ir/op_compat_sensible_pass.cc | 1 - paddle/phi/api/yaml/op_compat.yaml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/paddle/fluid/framework/ir/op_compat_sensible_pass.cc b/paddle/fluid/framework/ir/op_compat_sensible_pass.cc index 2512a853579..359639ec2c1 100644 --- a/paddle/fluid/framework/ir/op_compat_sensible_pass.cc +++ b/paddle/fluid/framework/ir/op_compat_sensible_pass.cc @@ -33,7 +33,6 @@ std::unordered_set global_extra_attrs = { "use_mkldnn", "mkldnn_data_type", "use_quantizer", - "mkldnn_data_type", "use_cudnn", "name", "with_quant_attr"}; diff --git a/paddle/phi/api/yaml/op_compat.yaml b/paddle/phi/api/yaml/op_compat.yaml index 4d79b56c45f..dc23690fa30 100644 --- a/paddle/phi/api/yaml/op_compat.yaml +++ b/paddle/phi/api/yaml/op_compat.yaml @@ -313,7 +313,7 @@ backward : conv2d_grad extra : attrs : [bool is_test = false, bool use_cudnn = true, bool use_mkldnn = false, bool use_addto = false, - str mkldnn_data_type = "float32", bool force_fp32_output = false, + bool force_fp32_output = false, int workspace_size_MB = phi::backends::gpu::GetDefaultConvWorkspaceSizeLimitMB(), bool exhaustive_search = false] - op : conv2d_fusion -- GitLab