From 98a6b85e8b51054f1c412fbcff1ebadc4ff088d4 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Mon, 16 Oct 2017 15:12:15 +0800 Subject: [PATCH] revise the error message to provide more detailed info --- python/paddle/trainer_config_helpers/layers.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/paddle/trainer_config_helpers/layers.py b/python/paddle/trainer_config_helpers/layers.py index 962545093ca..09315b9d922 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( -- GitLab