From 1f39a9f17e77bbef26b77f2b738517c239bf13b9 Mon Sep 17 00:00:00 2001 From: ShenLiang <1422485404@qq.com> Date: Thu, 21 Nov 2019 11:44:41 +0800 Subject: [PATCH] fix the bug of scatter_nd, test=develop (#21257) --- 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 2e47c6b2651..bbb3b9a3d23 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -7510,7 +7510,7 @@ def scatter_nd_add(ref, index, updates, name=None): raise ValueError("ref and updates must have same data type.") helper = LayerHelper('scatter_nd_add', **locals()) - dtype = helper.input_dtype() + dtype = helper.input_dtype(input_param_name='ref') if name is None: output = helper.create_variable_for_type_inference(dtype) else: -- GitLab