From 782ef3c5dc8b2b0140d7467a39b98c1c7074cc67 Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Tue, 23 Oct 2018 12:05:39 +0000 Subject: [PATCH] test=develop --- 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 f71bd894c0..97068f1979 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -7494,7 +7494,7 @@ def reorg(x, stride, name=None): raise ValueError("stride must be a python Int") if name is None: - out = helper.create_tmp_variable(dtype=x.dtype) + out = helper.create_variable_for_type_inference(dtype=x.dtype) else: out = helper.create_variable( name=name, dtype=x.dtype, persistable=False) -- GitLab