Skip to content

Commit 36ed2ff

Browse files
committed
keep forward compatibility
1 parent 7dbc77b commit 36ed2ff

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

python/paddle/trainer_config_helpers/layers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"hsigmoid",
5454
"conv_projection",
5555
"mse_cost",
56+
"regression_cost",
5657
'classification_cost',
5758
"LayerOutput",
5859
'img_conv_layer',
@@ -3605,6 +3606,9 @@ def mse_cost(input, label, weight=None, name=None, layer_attr=None):
36053606
return LayerOutput(name, LayerType.COST, parents=parents, size=1)
36063607

36073608

3609+
regression_cost = mse_cost
3610+
3611+
36083612
@wrap_name_default("cost")
36093613
@layer_support()
36103614
def classification_cost(input,

0 commit comments

Comments
 (0)