From 6333fab2bbf4e14a134e731dc9c1b69ffac96f82 Mon Sep 17 00:00:00 2001 From: onecatcn Date: Wed, 25 May 2022 13:32:33 +0800 Subject: [PATCH] Update accuracy_cn.rst (#4854) the doc was editted based on the discussion in the issue: INT32 Failed on paddle.metric.accuracy #42845 https://github.com/PaddlePaddle/Paddle/issues/42845 --- docs/api/paddle/metric/accuracy_cn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/paddle/metric/accuracy_cn.rst b/docs/api/paddle/metric/accuracy_cn.rst index 0f2f2792799..3107bd19737 100644 --- a/docs/api/paddle/metric/accuracy_cn.rst +++ b/docs/api/paddle/metric/accuracy_cn.rst @@ -13,7 +13,7 @@ accuracy layer。 参考 https://en.wikipedia.org/wiki/Precision_and_recall ::::::::: - **input** (Tensor)-数据类型为float32,float64。输入为网络的预测值。shape为 ``[sample_number, class_dim]`` 。 - - **label** (Tensor)-数据类型为int64,int32。输入为数据集的标签。shape为 ``[sample_number, 1]`` 。 + - **label** (Tensor)-数据类型为int64。输入为数据集的标签。shape为 ``[sample_number, 1]`` 。 - **k** (int64|int32,可选) - 取每个类别中k个预测值用于计算,默认值为1。 - **correct** (int64|int32, 可选)-正确预测值的个数,默认值为None。 - **total** (int64|int32,可选)-总共的预测值,默认值为None。