From c233328c587220f630309e92031742929b3437af Mon Sep 17 00:00:00 2001 From: hong <43953930+phlrain@users.noreply.github.com> Date: Sat, 6 Jun 2020 19:02:24 +0800 Subject: [PATCH] change zero copy from true to false; test=develop (#24946) --- python/paddle/fluid/tests/unittests/test_layers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/test_layers.py b/python/paddle/fluid/tests/unittests/test_layers.py index 3d6822a5b6f..ad091b7e5fe 100644 --- a/python/paddle/fluid/tests/unittests/test_layers.py +++ b/python/paddle/fluid/tests/unittests/test_layers.py @@ -2015,7 +2015,8 @@ class TestBook(LayerTest): if base.enabled(): return base.to_variable( value=self._get_np_data(shape, dtype, append_batch_size), - name=name) + name=name, + zero_copy=False) else: if set_feed_dict: self._feed_dict[name] = self._get_np_data(shape, dtype, -- GitLab