diff --git a/python/paddle/fluid/layers/metric_op.py b/python/paddle/fluid/layers/metric_op.py index 69052a502c1631ae8ecd2a1323b9733dec5dea3a..bf53f37a7e9cebcea16be09fc7bb32b1e4c31476 100644 --- a/python/paddle/fluid/layers/metric_op.py +++ b/python/paddle/fluid/layers/metric_op.py @@ -51,6 +51,7 @@ def accuracy(input, label, k=1, correct=None, total=None): Examples: .. code-block:: python + import numpy as np import paddle @@ -156,6 +157,7 @@ def auc(input, Examples: .. code-block:: python + import numpy as np import paddle