From d998ed0ce3a9ce91d27b6fc83b727426c71c711b Mon Sep 17 00:00:00 2001 From: furnace <34057289+windstamp@users.noreply.github.com> Date: Thu, 15 Oct 2020 08:46:54 +0800 Subject: [PATCH] bugfix for docs of paddle.nn.Assign API (#27927) --- python/paddle/nn/initializer/assign.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/nn/initializer/assign.py b/python/paddle/nn/initializer/assign.py index ac6dc3f0f31..a33301230e8 100644 --- a/python/paddle/nn/initializer/assign.py +++ b/python/paddle/nn/initializer/assign.py @@ -51,7 +51,7 @@ class Assign(NumpyArrayInitializer): # linear_1.weight: [2. 2.] # linear_1.bias: [2.] - res_1 = linear(data_1) + res_1 = linear_1(data_1) # res_1: [6.] # python list @@ -66,7 +66,7 @@ class Assign(NumpyArrayInitializer): # linear_2.weight: [2. 2.] # linear_2.bias: [2.] - res_2 = linear(data_2) + res_2 = linear_2(data_2) # res_2: [6.] # tensor @@ -81,7 +81,7 @@ class Assign(NumpyArrayInitializer): # linear_3.weight: [2. 2.] # linear_3.bias: [2.] - res_3 = linear(data_3) + res_3 = linear_3(data_3) # res_3: [6.] """ -- GitLab