From d44ba589f32334a3198a4148df443fb1269766a5 Mon Sep 17 00:00:00 2001 From: wawltor Date: Mon, 6 Jul 2020 10:40:07 +0800 Subject: [PATCH] Fix some doc apis example,scale ops Fix the doc example api for the scale op --- python/paddle/fluid/layers/nn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 6ddb6c222d4..36dc028ab0a 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -14037,7 +14037,7 @@ def unique(x, dtype='int32'): import numpy as np import paddle.fluid as fluid - x = fluid.assign(np.array([2, 3, 3, 1, 5, 3], dtype='int32')) + x = fluid.layers.assign(np.array([2, 3, 3, 1, 5, 3], dtype='int32')) out, index = fluid.layers.unique(x) # out is [2, 3, 1, 5]; index is [0, 1, 1, 2, 3, 1] """ -- GitLab