Home
last modified time | relevance | path

Searched refs:deepcopy (Results 1 – 25 of 127) sorted by relevance

123456

/third_party/python/Lib/
Dcopy.py128 def deepcopy(x, memo=None, _nil=[]): function
201 def _deepcopy_list(x, memo, deepcopy=deepcopy): argument
206 append(deepcopy(a, memo))
210 def _deepcopy_tuple(x, memo, deepcopy=deepcopy): argument
211 y = [deepcopy(a, memo) for a in x]
227 def _deepcopy_dict(x, memo, deepcopy=deepcopy): argument
231 y[deepcopy(key, memo)] = deepcopy(value, memo)
238 return type(x)(x.__func__, deepcopy(x.__self__, memo))
261 deepcopy=deepcopy): argument
264 args = (deepcopy(arg, memo) for arg in args)
[all …]
Dweakref.py184 from copy import deepcopy
192 new[deepcopy(key, memo)] = o
443 from copy import deepcopy
449 new[o] = deepcopy(value, memo)
/third_party/python/Lib/test/
Dtest_copy.py268 y = copy.deepcopy(x)
276 y = copy.deepcopy(x)
291 self.assertEqual(copy.deepcopy(C), C)
300 y = copy.deepcopy(x)
313 self.assertRaises(TypeError, copy.deepcopy, x)
315 y = copy.deepcopy(x)
326 y = copy.deepcopy(x)
337 y = copy.deepcopy(x)
348 self.assertRaises(copy.Error, copy.deepcopy, x)
363 self.assertIs(copy.deepcopy(x), x)
[all …]
Dtest_xml_dom_minicompat.py123 copied = copy.deepcopy(node_list)
130 copied = copy.deepcopy(node_list)
Dtest_itertools.py183 for oper in [copy.deepcopy] + picklecopiers:
510 for op in [lambda a:copy.copy(a), lambda a:copy.deepcopy(a)] + picklecopiers:
568 self.assertEqual(next(copy.deepcopy(c)), value)
643 self.assertEqual(take(10, copy.deepcopy(c)), list('bcabcabcab'))
855 self.assertEqual(list(copy.deepcopy(c)), ans)
905 ans = [(x,y) for x, y in copy.deepcopy(zip('abc',count()))]
1127 self.assertEqual(list(copy.deepcopy(product(*args))), result)
1163 self.assertEqual(take(2, copy.deepcopy(c)), list('a' * 2))
1197 self.assertEqual(list(copy.deepcopy(c)), ans)
1224 self.assertEqual(list(copy.deepcopy(c)), ans)
[all …]
/third_party/mindspore/mindspore/dataset/engine/
Dcache_client.py90 new_cache.session_id = copy.deepcopy(self.session_id, memodict)
91 new_cache.spilling = copy.deepcopy(self.spilling, memodict)
92 new_cache.size = copy.deepcopy(self.size, memodict)
93 new_cache.hostname = copy.deepcopy(self.hostname, memodict)
94 new_cache.port = copy.deepcopy(self.port, memodict)
95 new_cache.prefetch_size = copy.deepcopy(self.prefetch_size, memodict)
96 new_cache.num_connections = copy.deepcopy(self.num_connections, memodict)
/third_party/node/tools/gyp/pylib/gyp/
Dsimple_copy.py18 def deepcopy(x): function
49 return [deepcopy(a) for a in x]
58 y[deepcopy(key)] = deepcopy(value)
DMSVSUtil.py44 d[key] = copy.deepcopy(in_dict[key])
218 copy_dict = copy.deepcopy(base_dict)
231 shim_dict = copy.deepcopy(base_dict)
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
Dsimple_copy.py15 def deepcopy(x): function
40 return [deepcopy(a) for a in x]
46 y[deepcopy(key)] = deepcopy(value)
DMSVSUtil.py43 d[key] = copy.deepcopy(in_dict[key])
216 copy_dict = copy.deepcopy(base_dict)
230 shim_dict = copy.deepcopy(base_dict)
/third_party/mindspore/mindspore/boost/
Dbase.py99 new_group_param = copy.deepcopy(group_param)
104 new_group_param = copy.deepcopy(group_param)
208 new_params_count = copy.deepcopy(params_name)
213 new_group_param = copy.deepcopy(group_param)
223 new_group_param = copy.deepcopy(group_param)
228 new_params_clone = copy.deepcopy(group_param)
/third_party/jerryscript/tools/
Dgen-magic-strings.py38 def deepcopy(obj): function
40 return [deepcopy(e) for e in obj]
44 return {repr(k): deepcopy(e) for k, e in obj.items()}
46 return json.dumps(deepcopy(obj), indent=4)
/third_party/mindspore/mindspore/explainer/explanation/_attribution/_backprop/
Dgradient.py16 from copy import deepcopy
80 self._backward_model = deepcopy(network)
/third_party/python/Lib/test/test_email/
Dtest_pickleable.py28 h = copy.deepcopy(header)
65 msg2 = copy.deepcopy(msg)
/third_party/mindspore/tests/st/fl/albert/src/
Dutils.py34 return {param.name: copy.deepcopy(param) for param in network.trainable_params()
38 param_dict[param.name] = copy.deepcopy(param)
/third_party/mindspore/mindspore/nn/probability/toolbox/
Duncertainty_evaluation.py16 from copy import deepcopy
87 self.epi_model = deepcopy(model)
88 self.ale_model = deepcopy(model)
90 self.ale_train_dataset = deepcopy(train_dataset)
/third_party/python/Doc/library/
Dcopy.rst25 .. function:: deepcopy(x[, memo])
54 The :func:`deepcopy` function avoids these problems by:
87 to make a deep copy of a component, it should call the :func:`deepcopy` function
/third_party/mesa3d/src/panfrost/bifrost/
Dbifrost_isa.py181 variant = copy.deepcopy(common)
265 modifiers[name] = copy.deepcopy(opts)
312 modifier_lists[name_] = copy.deepcopy(modifiers[name])
/third_party/mindspore/tests/ut/python/dataset/
Dtest_sentencepiece_tokenizer.py140 dataset_1 = copy.deepcopy(dataset)
141 dataset_2 = copy.deepcopy(dataset)
152 dataset_1 = copy.deepcopy(dataset)
/third_party/python/Lib/distutils/tests/
Dsupport.py8 from copy import deepcopy
125 self.old_environ = deepcopy(os.environ)
/third_party/grpc/tools/buildgen/plugins/
Dmake_fuzzer_tests.py25 new_target = copy.deepcopy(tgt)
/third_party/vk-gl-cts/scripts/log/
Dbottleneck_report.py63 self.list.append(copy.deepcopy(self.element))
100 self.list.append(copy.deepcopy(self.element))
/third_party/python/Lib/email/
Dgenerator.py14 from copy import deepcopy
188 msg = deepcopy(msg)
245 msg = deepcopy(msg)
/third_party/python/Lib/unittest/test/testmock/
Dtestsentinel.py37 self.assertIs(copy.deepcopy(sentinel.whatever), sentinel.whatever)
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dmessage_test.py84 golden_copy = copy.deepcopy(golden_message)
95 golden_copy = copy.deepcopy(golden_message)
106 golden_copy = copy.deepcopy(golden_message)
117 golden_copy = copy.deepcopy(golden_message)

123456