From c1abc349cc25c8bf06bc99e78ce4aa081bcde899 Mon Sep 17 00:00:00 2001 From: Yang Zhang Date: Mon, 29 Jun 2020 13:56:49 +0800 Subject: [PATCH] Fix `MSELoss` module path (#2214) --- doc/fluid/api_cn/dygraph_cn/MSELoss_cn.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/fluid/api_cn/dygraph_cn/MSELoss_cn.rst b/doc/fluid/api_cn/dygraph_cn/MSELoss_cn.rst index ed5a9fd64..49310c421 100644 --- a/doc/fluid/api_cn/dygraph_cn/MSELoss_cn.rst +++ b/doc/fluid/api_cn/dygraph_cn/MSELoss_cn.rst @@ -1,7 +1,7 @@ MSELoss ------------------------------- -.. py:function:: paddle.layers.MSELoss(input,label) +.. py:function:: paddle.fluid.dygraph.MSELoss(input,label) 该OP用于计算预测值和目标值的均方差误差。 @@ -40,7 +40,7 @@ MSELoss from paddle import fluid import paddle.fluid.dygraph as dg - mse_loss = paddle.layers.MSELoss() + mse_loss = fluid.dygraph.MSELoss() input = fluid.data(name="input", shape=[1]) label = fluid.data(name="label", shape=[1]) place = fluid.CPUPlace() -- GitLab