Skip to content

Commit 98a6b85

Browse files
author
Peng Li
committed
revise the error message to provide more detailed info
1 parent 386a028 commit 98a6b85

File tree

1 file changed

+4
-3
lines changed
  • python/paddle/trainer_config_helpers

1 file changed

+4
-3
lines changed

python/paddle/trainer_config_helpers/layers.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3680,9 +3680,10 @@ def gru_step_naive_layer(input,
36803680
size = input.size / 3
36813681

36823682
if bias_attr and bias_attr.attr.get("parameter_name", None) is not None:
3683-
raise ValueError("You should not specify the name of bias parameters. "
3684-
"Otherwise, the three bias will share the same "
3685-
"parameter matrix.")
3683+
raise ValueError("You should not specify the field `name` in bias_attr."
3684+
" Otherwise, the three biases, which correponding to "
3685+
" the two gates and the mixed layer for computing Wx+b"
3686+
", will share the same parameter matrix unexpectedly.")
36863687

36873688
def __gate__(gate_name, offset):
36883689
with mixed_layer(

0 commit comments

Comments
 (0)