From 0ac03ae723cf11b95b45eccbfc6923ece65d12ff Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Wed, 13 Jun 2018 23:03:30 +0800 Subject: [PATCH] fix --- 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 fde8a3154f3..71df672fe46 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -4289,7 +4289,7 @@ def random_crop(x, shape, seed=None): seed_out = helper.create_tmp_variable(dtype="int64") helper.append_op( type="random_crop", - inputs={"X": input, + inputs={"X": x, "Seed": seed}, outputs={"Out": out, "SeedOut": seed_out}, -- GitLab