@@ -1046,8 +1046,11 @@ def fc_layer(input,
1046
1046
else :
1047
1047
if "parameter_name" in param_attr .attr and len (input ) > 1 :
1048
1048
logger .fatal (
1049
- "You should set the parameter name for each of the input item."
1050
- )
1049
+ "When the name field of param_attr is manually specified "
1050
+ "and the input is a list, the param_attr should also be a "
1051
+ "list with each item being the param_attr for each input "
1052
+ "item. If only one named param_attr is provided, all the "
1053
+ "input items would share this parameter." )
1051
1054
param_attr = [copy .deepcopy (param_attr ) for _ in range (len (input ))]
1052
1055
1053
1056
assert isinstance (input , collections .Sequence )
@@ -4869,8 +4872,11 @@ def selective_fc_layer(input,
4869
4872
else :
4870
4873
if "parameter_name" in param_attr .attr and len (input ) > 1 :
4871
4874
logger .fatal (
4872
- "You should set the parameter name for each of the input item."
4873
- )
4875
+ "When the name field of param_attr is manually specified "
4876
+ "and the input is a list, the param_attr should also be a "
4877
+ "list with each item being the param_attr for each input "
4878
+ "item. If only one named param_attr is provided, all the "
4879
+ "input items would share this parameter." )
4874
4880
param_attr = [copy .deepcopy (param_attr ) for _ in range (len (input ))]
4875
4881
4876
4882
assert isinstance (input , collections .Sequence )
0 commit comments