From 29a5f818f37927f1c1439a5b951aa3640f1c49e7 Mon Sep 17 00:00:00 2001 From: SunAhong1993 Date: Thu, 6 Aug 2020 16:30:53 +0800 Subject: [PATCH] fix for paddle1.8.0 --- x2paddle/op_mapper/caffe_custom_layer/normalize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x2paddle/op_mapper/caffe_custom_layer/normalize.py b/x2paddle/op_mapper/caffe_custom_layer/normalize.py index 15bbb20..19c583a 100644 --- a/x2paddle/op_mapper/caffe_custom_layer/normalize.py +++ b/x2paddle/op_mapper/caffe_custom_layer/normalize.py @@ -17,7 +17,7 @@ def normalize_layer(inputs, scale_param = fluid.layers.create_parameter( shape=[1] if channel_shared else [1, 1, 1, input_shape[0][1]], dtype=input.dtype, - attr=name + '_scale') + attr=fluid.ParamAttr(name=name + '_scale')) scale_param = fluid.layers.reshape(x=scale_param, \ shape=[1] if channel_shared else [input_shape[0][1]]) out = fluid.layers.elementwise_mul( -- GitLab