We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 436c0e0 + 98a6b85 commit aeccaf5Copy full SHA for aeccaf5
python/paddle/trainer_config_helpers/layers.py
@@ -3679,6 +3679,12 @@ def gru_step_naive_layer(input,
3679
if size is None:
3680
size = input.size / 3
3681
3682
+ if bias_attr and bias_attr.attr.get("parameter_name", None) is not None:
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.")
3687
+
3688
def __gate__(gate_name, offset):
3689
with mixed_layer(
3690
name=name + "_" + gate_name,
0 commit comments