Commit 2aa97ad8 authored by theos's avatar theos
Browse files

Removed an unnecessary array copy in obj.copy()

parent 23345ccb
Pipeline #1175 skipped
......@@ -295,7 +295,7 @@ class distributed_data_object(object):
**kwargs)
if distribution_strategy is None or \
distribution_strategy == self.distribution_strategy:
temp_d2o.set_local_data(self.get_local_data(), copy=True)
temp_d2o.set_local_data(self.get_local_data(copy=False), copy=True)
else:
temp_d2o.set_full_data(self, hermitian=self.hermitian)
temp_d2o.hermitian = self.hermitian
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment