diff --git a/python/paddle/trainer_config_helpers/layers.py b/python/paddle/trainer_config_helpers/layers.py index 962545093ca2a72f1d781cb1bb043f0db2a46480..09315b9d9224076d91c16a6c0b949d4ab289bf70 100644 --- a/python/paddle/trainer_config_helpers/layers.py +++ b/python/paddle/trainer_config_helpers/layers.py @@ -3680,9 +3680,10 @@ def gru_step_naive_layer(input, size = input.size / 3 if bias_attr and bias_attr.attr.get("parameter_name", None) is not None: - raise ValueError("You should not specify the name of bias parameters. " - "Otherwise, the three bias will share the same " - "parameter matrix.") + raise ValueError("You should not specify the field `name` in bias_attr." + " Otherwise, the three biases, which correponding to " + " the two gates and the mixed layer for computing Wx+b" + ", will share the same parameter matrix unexpectedly.") def __gate__(gate_name, offset): with mixed_layer(