提交 36ed2ff1 编写于 作者: L Luo Tao

keep forward compatibility

上级 7dbc77ba
...@@ -53,6 +53,7 @@ __all__ = [ ...@@ -53,6 +53,7 @@ __all__ = [
"hsigmoid", "hsigmoid",
"conv_projection", "conv_projection",
"mse_cost", "mse_cost",
"regression_cost",
'classification_cost', 'classification_cost',
"LayerOutput", "LayerOutput",
'img_conv_layer', 'img_conv_layer',
...@@ -3605,6 +3606,9 @@ def mse_cost(input, label, weight=None, name=None, layer_attr=None): ...@@ -3605,6 +3606,9 @@ def mse_cost(input, label, weight=None, name=None, layer_attr=None):
return LayerOutput(name, LayerType.COST, parents=parents, size=1) return LayerOutput(name, LayerType.COST, parents=parents, size=1)
regression_cost = mse_cost
@wrap_name_default("cost") @wrap_name_default("cost")
@layer_support() @layer_support()
def classification_cost(input, def classification_cost(input,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册