Home
last modified time | relevance | path

Searched refs:cache_enable (Results 1 – 25 of 31) sorted by relevance

12

/third_party/mindspore/mindspore/nn/optim/
Dmomentum.py28 …or_run_opt_ext(opt, momentum, learning_rate, gradient, weight, moment, ps_parameter, cache_enable): argument
30 if ps_parameter and not cache_enable:
171 … lr, gradients, params, moments, self.ps_parameters, self.cache_enable)
174 … gradients, params, moments, self.ps_parameters, self.cache_enable)
Dlazyadam.py35 beta1, beta2, eps, lr, gradient, params, m, v, ps_parameter, cache_enable): argument
40 if ps_parameter and not cache_enable:
82 … beta1, beta2, eps, lr, gradient, params, moment1, moment2, ps_parameter, cache_enable): argument
85 if ps_parameter and not cache_enable:
275 self.cache_enable)
282 self.cache_enable)
Dftrl.py30 gradient, weight, moment, ps_parameter, cache_enable): argument
35 if ps_parameter and not cache_enable:
47 gradient, weight, moment, ps_parameter, cache_enable): argument
50 if ps_parameter and not cache_enable:
234 linear, grads, params, moments, self.ps_parameters, self.cache_enable)
Dadam.py94 … beta2_power, beta1, beta2, eps, lr, gradient, param, m, v, ps_parameter, cache_enable): argument
99 if ps_parameter and not cache_enable:
156 moment1, moment2, ps_parameter, cache_enable): argument
159 if ps_parameter and not cache_enable:
359 … lr, gradients, params, moment1, moment2, self.ps_parameters, self.cache_enable)
364 … gradients, params, moment1, moment2, self.ps_parameters, self.cache_enable)
Doptimizer.py194 cache_filter = lambda x: x.cache_enable
195 self.cache_enable = tuple(cache_filter(x) for x in self.parameters)
/third_party/mindspore/mindspore/common/
Dparameter.py136 self.cache_enable = False
290 if _is_role_worker() and self.cache_enable:
399 x.cache_enable = self.cache_enable
438 def cache_enable(self): member in Parameter
440 return self.param_info.cache_enable
442 @cache_enable.setter
443 def cache_enable(self, value=True): member in Parameter
446 self.param_info.cache_enable = value
576 if _is_role_worker() and self.cache_enable:
661 if not x1.cache_enable:
/third_party/mindspore/mindspore/ccsrc/ps/ps_cache/ps_data/
Dps_data_prefetch.h37 EXPORT bool cache_enable() const { return cache_enable_; } in cache_enable() function
38 EXPORT void set_cache_enable(bool cache_enable) { cache_enable_ = cache_enable; } in set_cache_enable() argument
/third_party/mindspore/mindspore/core/ir/
Dparam_info.h91 bool cache_enable() const { return cache_enable_; } in cache_enable() function
92 void set_cache_enable(bool cache_enable) { cache_enable_ = cache_enable; } in set_cache_enable() argument
Dtensor.h312 bool cache_enable() const { return cache_enable_; } in cache_enable() function
313 void set_cache_enable(bool cache_enable = true) { cache_enable_ = cache_enable; }
/third_party/mindspore/mindspore/nn/layer/
Dembedding.py233 self.cache_enable = self.vocab_cache_size > 0
259 if self.cache_enable and enable_ps:
279 … if (target == 'DEVICE' and not full_batch) or (self.cache_enable and enable_ps and sparse):
305 if self.cache_enable and not enable_ps:
331 self.embedding_table.cache_enable = self.cache_enable
337 self.cache_enable = False
361 self.cache_enable = True
373 self.embedding_table.cache_enable = True
Dthor_layer.py729 self.cache_enable = self.vocab_cache_size > 0
758 if self.cache_enable and enable_ps:
778 … if (target == 'DEVICE' and not full_batch) or (self.cache_enable and enable_ps and sparse):
804 if self.cache_enable and not enable_ps:
861 self.embedding_table.cache_enable = self.cache_enable
867 self.cache_enable = False
891 self.cache_enable = True
901 self.embedding_table.cache_enable = True
/third_party/mindspore/mindspore/parallel/
D_ps_context.py221 def _set_cache_enable(cache_enable): argument
224 if cache_enable:
228 ps_context().set_cache_enable(cache_enable)
/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dkernel_runtime_manager.cc30 if (ps::PSContext::instance()->is_worker() && ps::PsDataPrefetch::GetInstance().cache_enable()) { in ClearRuntimeResource()
136 if (ps::PSContext::instance()->is_worker() && ps::PsDataPrefetch::GetInstance().cache_enable()) { in ReleaseKernelRuntime()
/third_party/mindspore/tests/st/fl/mobile/src/
Dadam.py109 … beta2_power, beta1, beta2, eps, lr, gradient, param, m, v, ps_parameter, cache_enable): argument
114 if ps_parameter and not cache_enable:
177 moment1, moment2, ps_parameter, cache_enable): argument
180 if ps_parameter and not cache_enable:
/third_party/mindspore/tests/st/fl/albert/src/
Dadam.py110 … beta2_power, beta1, beta2, eps, lr, gradient, param, m, v, ps_parameter, cache_enable): argument
115 if ps_parameter and not cache_enable:
177 moment1, moment2, ps_parameter, cache_enable): argument
180 if ps_parameter and not cache_enable:
/third_party/mindspore/tests/st/fl/hybrid_lenet/src/
Dadam.py109 … beta2_power, beta1, beta2, eps, lr, gradient, param, m, v, ps_parameter, cache_enable): argument
114 if ps_parameter and not cache_enable:
176 moment1, moment2, ps_parameter, cache_enable): argument
179 if ps_parameter and not cache_enable:
/third_party/mindspore/mindspore/ccsrc/ps/
Dps_context.cc92 if (ps::PsDataPrefetch::GetInstance().cache_enable()) { in Reset()
177 void PSContext::set_cache_enable(bool cache_enable) const { in set_cache_enable()
179 PsDataPrefetch::GetInstance().set_cache_enable(cache_enable); in set_cache_enable()
Dps_context.h81 void set_cache_enable(bool cache_enable) const;
Dparameter_server.cc235 if (ps::PsDataPrefetch::GetInstance().cache_enable()) { in InitEmbeddingTable()
488 if (ps::PsDataPrefetch::GetInstance().cache_enable()) { in GetEmbeddingTableParamPtr()
740 if (ps::PsDataPrefetch::GetInstance().cache_enable()) { in HandleInitEmbeddings()
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/
Dparam_info_py.cc38 … .def_property("cache_enable", &ParamInfo::cache_enable, &ParamInfo::set_cache_enable) in __anon2c0500310102()
Dtensor_py.cc334 if (tensor.cache_enable()) { in FlushFromCache()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/ops_info/
Dunique_info.cc160 if (ps::PsDataPrefetch::GetInstance().cache_enable()) { in replace_graph()
Dgather_v2_p_info.cc166 if (ps::PsDataPrefetch::GetInstance().cache_enable() && enable_sparse) { in GetAttrs()
641 if (ps::PsDataPrefetch::GetInstance().cache_enable()) { in InferBias()
/third_party/mindspore/mindspore/train/callback/
D_checkpoint.py446 if param.cache_enable:
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/cache_embedding/
Dcache_embedding.cc44 if (param_info && param_info->cache_enable()) { in AddCacheParameters()
114 if (param_info && param_info->cache_enable()) { in FindParamCacheEnable()

12