diff --git a/python/paddle/fluid/tests/unittests/test_layers.py b/python/paddle/fluid/tests/unittests/test_layers.py index 3d6822a5b6f8bd59fe85d561d6278f8508f42889..ad091b7e5fee9cd868b2b911b7654d074238b585 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,