Home
last modified time | relevance | path

Searched refs:use_nesterov (Results 1 – 25 of 45) sorted by relevance

12

/third_party/mindspore/mindspore/nn/optim/
Dlazyadam.py34 def _run_opt_with_sparse(opt, sparse_opt, push, pull, use_locking, use_nesterov, target, beta1_powe… argument
66 if use_nesterov:
81 def _run_opt_with_one_number(opt, sparse_opt, push, pull, use_locking, use_nesterov, target, beta1_… argument
237 use_nesterov=False, weight_decay=0.0, loss_scale=1.0): argument
241 validator.check_value_type("use_nesterov", use_nesterov, [bool], self.cls_name)
248 self.use_nesterov = use_nesterov
253 self.opt = P.Adam(use_locking, use_nesterov)
254 self.sparse_opt = P.FusedSparseLazyAdam(use_locking, use_nesterov)
258 self._ps_push.add_prim_attr("use_nesterov", use_nesterov)
272 … self._ps_pull, self.use_locking, self.use_nesterov, self._is_device,
[all …]
Dadam.py93 def _run_opt_with_sparse(opt, sparse_opt, push, pull, use_locking, use_nesterov, target, beta1_powe… argument
131 if use_nesterov:
154 def _run_opt_with_one_number(opt, sparse_opt, push, pull, use_locking, use_nesterov, target, argument
317 use_nesterov=False, weight_decay=0.0, loss_scale=1.0): argument
321 validator.check_value_type("use_nesterov", use_nesterov, [bool], self.cls_name)
328 self.use_nesterov = use_nesterov
334 self.opt = P.Adam(use_locking, use_nesterov)
335 self.sparse_opt = P.FusedSparseAdam(use_locking, use_nesterov)
339 self._ps_push.add_prim_attr("use_nesterov", use_nesterov)
357 self.use_locking, self.use_nesterov, self._is_device,
[all …]
Dmomentum.py151 …nit__(self, params, learning_rate, momentum, weight_decay=0.0, loss_scale=1.0, use_nesterov=False): argument
158 self.use_nesterov = Validator.check_bool(use_nesterov)
160 self.opt = P.ApplyMomentum(use_nesterov=self.use_nesterov)
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Dmomentum_impl.cu20 … const G *gradient, const S *momentum, bool use_nesterov) { in MomentumUpdateVariableKernel() argument
21 if (use_nesterov) { in MomentumUpdateVariableKernel()
36 bool use_nesterov) { in MomentumUpdateVariableKernel() argument
37 if (use_nesterov) { in MomentumUpdateVariableKernel()
53 bool use_nesterov) { in MomentumUpdateVariableKernel() argument
54 if (use_nesterov) { in MomentumUpdateVariableKernel()
68 const S *momentum, bool use_nesterov, cudaStream_t cuda_stream) { in MomentumUpdateVariable() argument
70 size, variable, accumulation, learning_rate, gradient, momentum, use_nesterov); in MomentumUpdateVariable()
180 const float *momentum, bool use_nesterov,
184 const half *momentum, bool use_nesterov,
[all …]
/third_party/mindspore/mindspore/core/ops/
Dapply_momentum.cc28 void ApplyMomentum::Init(const bool use_nesterov, const bool use_locking, const float gradient_scal… in Init() argument
29 this->set_use_nesterov(use_nesterov); in Init()
34 void ApplyMomentum::set_use_nesterov(const bool use_nesterov) { in set_use_nesterov() argument
35 (void)this->AddAttr(kUseNesterov, MakeValue(use_nesterov)); in set_use_nesterov()
Dadam.cc55 void Adam::Init(const bool use_locking, const bool use_nesterov) { in Init() argument
57 this->set_use_nesterov(use_nesterov); in Init()
62 void Adam::set_use_nesterov(const bool use_nesterov) { (void)this->AddAttr(kUseNesterov, MakeValue( in set_use_nesterov() argument
Dadam.h40 void Init(const bool use_locking = false, const bool use_nesterov = false);
44 void set_use_nesterov(const bool use_nesterov);
Dapply_momentum.h41 …void Init(const bool use_nesterov = false, const bool use_locking = false, const float gradient_sc…
43 void set_use_nesterov(const bool use_nesterov);
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Dadam_fp32.h36 size_t start, size_t end, bool use_nesterov);
38 const float *gradient, size_t start, size_t end, bool use_nesterov);
Dadam_fp32.c21 size_t start, size_t end, bool use_nesterov) { in AdamFp32() argument
52 if (use_nesterov) { in AdamFp32()
80 if (use_nesterov) { in AdamFp32()
90 const float *gradient, size_t start, size_t end, bool use_nesterov) { in AdamDeltaFp32() argument
121 if (use_nesterov) { in AdamDeltaFp32()
146 if (use_nesterov) { in AdamDeltaFp32()
/third_party/mindspore/tests/ut/python/nn/optim/
Dtest_optimizer.py52 use_nesterov=False, weight_decay=0.0, loss_scale=1.0)
58 use_nesterov=False, weight_decay=0.0, loss_scale=1.0)
/third_party/mindspore/mindspore/lite/examples/transfer_learning/model/
Dtrain_utils.py32 use_locking=False, use_nesterov=False, weight_decay=0.0, loss_scale=1.0)
/third_party/mindspore/mindspore/lite/examples/train_lenet_java/model/
Dtrain_utils.py33 use_nesterov=False, weight_decay=4e-5, loss_scale=1.0)
/third_party/mindspore/mindspore/lite/examples/unified_api/model/
Dtrain_utils.py33 use_nesterov=False, weight_decay=4e-5, loss_scale=1.0)
/third_party/mindspore/mindspore/lite/examples/train_lenet/model/
Dtrain_utils.py34 use_nesterov=False, weight_decay=4e-5, loss_scale=1.0)
/third_party/mindspore/tests/st/networks/models/resnet50/
Dtest_resnet50_imagenet.py194 loss_scale=config.loss_scale, use_nesterov=config.use_nesterov)
200 loss_scale=config.loss_scale, use_nesterov=config.use_nesterov)
/third_party/mindspore/mindspore/ccsrc/transform/graph_ir/op_declare/
Dnn_training_ops_declare.cc23 ATTR_MAP(ApplyMomentum) = {{"use_nesterov", ATTR_DESC(use_nesterov, AnyTraits<bool>())},
47 {"use_nesterov", ATTR_DESC(use_nesterov, AnyTraits<bool>())}};
56 {"use_nesterov", ATTR_DESC(use_nesterov, AnyTraits<bool>())}};
/third_party/mindspore/mindspore/lite/examples/export_models/models/
Dvgg_train_export.py31 optimizer = nn.Momentum(n.trainable_params(), 0.01, 0.9, use_nesterov=False)
Dshufflenetv2_train_export.py29 optimizer = nn.Momentum(n.trainable_params(), 0.01, 0.9, use_nesterov=False)
Dmini_alexnet_train_export.py33 use_nesterov=False, weight_decay=0.0, loss_scale=1.0)
Dlenet_train_export.py30 use_nesterov=False, weight_decay=0.0, loss_scale=0.3)
Dmobilenetv3_train_export.py30 use_nesterov=False, weight_decay=0.1, loss_scale=0.3)
Dmobilenetv2_train_export.py33 optimizer = nn.Momentum(n.trainable_params(), 0.01, 0.9, use_nesterov=False)
Demnist_transfer_export.py40 use_nesterov=False, weight_decay=0.0, loss_scale=0.3)
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dsparse_apply_lazy_adam_cpu_kernel.cc37 const auto use_nesterov = input_params->use_nesterov_; in ComputeLazyAdam() local
52 if (use_nesterov) { in ComputeLazyAdam()

12