|
|
|
@ -1045,7 +1045,9 @@ def fc_layer(input,
|
|
|
|
|
assert len(input) == len(param_attr)
|
|
|
|
|
else:
|
|
|
|
|
if "parameter_name" in param_attr.attr and len(input) > 1:
|
|
|
|
|
logger.fatal("You should set the parameter name for each of the input item.")
|
|
|
|
|
logger.fatal(
|
|
|
|
|
"You should set the parameter name for each of the input item."
|
|
|
|
|
)
|
|
|
|
|
param_attr = [copy.deepcopy(param_attr) for _ in range(len(input))]
|
|
|
|
|
|
|
|
|
|
assert isinstance(input, collections.Sequence)
|
|
|
|
@ -4866,7 +4868,9 @@ def selective_fc_layer(input,
|
|
|
|
|
assert len(input) == len(param_attr)
|
|
|
|
|
else:
|
|
|
|
|
if "parameter_name" in param_attr.attr and len(input) > 1:
|
|
|
|
|
logger.fatal("You should set the parameter name for each of the input item.")
|
|
|
|
|
logger.fatal(
|
|
|
|
|
"You should set the parameter name for each of the input item."
|
|
|
|
|
)
|
|
|
|
|
param_attr = [copy.deepcopy(param_attr) for _ in range(len(input))]
|
|
|
|
|
|
|
|
|
|
assert isinstance(input, collections.Sequence)
|
|
|
|
|