From 7c64aa0fdc6def71ac8e7b7bb2532692eb041ede Mon Sep 17 00:00:00 2001 From: Tomasz Patejko Date: Wed, 17 Oct 2018 11:17:34 +0200 Subject: [PATCH] MKLDNN conv + elementwise_add fusion: _set_attr corrected in residual connection fusion test=develop --- python/paddle/fluid/transpiler/inference_transpiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/transpiler/inference_transpiler.py b/python/paddle/fluid/transpiler/inference_transpiler.py index 90b1a16a5a2..5269bd94cec 100644 --- a/python/paddle/fluid/transpiler/inference_transpiler.py +++ b/python/paddle/fluid/transpiler/inference_transpiler.py @@ -465,7 +465,7 @@ class InferenceTranspiler(object): in_var = self.block.vars[conv_op.input("Input")[0]] bias_var = self.block.vars[conv_op.input("Bias")[0]] - conv_op.set_attr("fuse_residual_connection", True) + conv_op._set_attr("fuse_residual_connection", True) attrs = {name: conv_op.attr(name) for name in conv_op.attr_names} self.block._insert_op( -- GitLab