Home
last modified time | relevance | path

Searched refs:memodict (Results 1 – 4 of 4) sorted by relevance

/third_party/mindspore/mindspore/dataset/engine/
Dcache_client.py84 def __deepcopy__(self, memodict): argument
85 if id(self) in memodict:
86 return memodict[id(self)]
89 memodict[id(self)] = new_cache
90 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)
[all …]
Ddatasets.py317 def __safe_deepcopy__(self, memodict, exclude=()): argument
318 if id(self) in memodict:
319 return memodict[id(self)]
322 memodict[id(self)] = new_op
328 setattr(new_op, arg, copy.deepcopy(value, memodict))
2234 def __deepcopy__(self, memodict): argument
2235 …return self.__safe_deepcopy__(memodict, exclude=("per_batch_map", "batch_size_func", "__transfer_d…
2343 def __deepcopy__(self, memodict): argument
2762 def __deepcopy__(self, memodict): argument
2763 …return self.__safe_deepcopy__(memodict, exclude=("operations", "callbacks", "__transfer_dataset__"…
[all …]
/third_party/mindspore/mindspore/common/
Dparameter.py167 def __deepcopy__(self, memodict): argument
Dtensor.py119 def __deepcopy__(self, memodict): argument