Home
last modified time | relevance | path

Searched refs:momentum (Results 1 – 25 of 125) sorted by relevance

12345

/external/tensorflow/tensorflow/python/keras/optimizer_v2/
Drmsprop_test.py63 def _rmsprop_update_numpy(self, var, g, mg, rms, mom, lr, rho, momentum, argument
72 if momentum > 0.:
73 mom_t = momentum * mom + lr * g / (np.sqrt(denom_t + epsilon))
81 lr, rho, momentum, epsilon, centered): argument
95 if momentum > 0.:
96 mom_t[gindex] = momentum * mom[gindex] + lr * gvalue / np.sqrt(denom_t +
106 for (dtype, learning_rate, rho, momentum, epsilon, centered) in _TESTPARAMS:
121 momentum=momentum,
135 if momentum > 0.:
164 momentum, epsilon, centered)
[all …]
Dgradient_descent.py105 momentum=0.0, argument
114 if isinstance(momentum, ops.Tensor) or callable(momentum) or momentum > 0:
116 if isinstance(momentum, (int, float)) and (momentum < 0 or momentum > 1):
118 self._set_hyper("momentum", momentum)
144 momentum=coefficients["momentum"],
182 momentum=coefficients["momentum"],
Drmsprop.py101 momentum=0.0, argument
144 if isinstance(momentum, ops.Tensor) or callable(momentum) or momentum > 0:
146 if isinstance(momentum, (int, float)) and (momentum < 0 or momentum > 1):
148 self._set_hyper("momentum", momentum)
173 momentum=array_ops.identity(self._get_hyper("momentum", var_dtype)),
193 momentum=coefficients["momentum"],
204 momentum=coefficients["momentum"],
239 momentum=coefficients["momentum"],
251 momentum=coefficients["momentum"],
Dgradient_descent_test.py302 def _update_nesterov_momentum_numpy(self, var, accum, g, lr, momentum): argument
303 accum = accum * momentum - g * lr
304 var += (accum * momentum - g * lr)
315 momentum = 0.9
317 learning_rate=learning_rate, momentum=momentum)
379 learning_rate=2.0, momentum=0.9, nesterov=True)
413 learning_rate=2.0, momentum=0.9, nesterov=True)
444 opt = gradient_descent.SGD(learning_rate=1.0, momentum=0.9)
459 opt = gradient_descent.SGD(learning_rate=1.0, momentum=0.9)
475 momentum=constant_op.constant(0.9))
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Ddecompose_resource_ops.td82 // accum = accum * momentum + grad;
87 $var_resource, $accum_resource, $lr, $grad, $momentum,
93 $momentum
104 // accum = accum * momentum + grad;
105 // var -= grad * lr + accum * momentum * lr
109 $var_resource, $accum_resource, $lr, $grad, $momentum,
115 $momentum
124 (TF_MulOp $accum_new, (TF_MulOp $momentum, $lr))
132 // accum = accum * momentum - lr * grad
137 $var_resource, $accum_resource, $lr, $grad, $momentum,
[all …]
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_ResourceApplyKerasMomentum.pbtxt28 name: "momentum"
45 var + momentum * accum, so in the end, the var you get is actually
46 var + momentum * accum.
49 summary: "Update \'*var\' according to the momentum scheme."
51 Set use_nesterov = True if you want to use Nesterov momentum.
53 accum = accum * momentum - lr * grad
Dapi_def_ResourceApplyMomentum.pbtxt28 name: "momentum"
45 var - lr * momentum * accum, so in the end, the var you get is actually
46 var - lr * momentum * accum.
49 summary: "Update \'*var\' according to the momentum scheme."
51 Set use_nesterov = True if you want to use Nesterov momentum.
53 accum = accum * momentum + grad
Dapi_def_ApplyMomentum.pbtxt28 name: "momentum"
51 var - lr * momentum * accum, so in the end, the var you get is actually
52 var - lr * momentum * accum.
55 summary: "Update \'*var\' according to the momentum scheme."
57 Set use_nesterov = True if you want to use Nesterov momentum.
59 accum = accum * momentum + grad
Dapi_def_SparseApplyMomentum.pbtxt34 name: "momentum"
57 var - lr * momentum * accum, so in the end, the var you get is actually
58 var - lr * momentum * accum.
61 summary: "Update relevant entries in \'*var\' and \'*accum\' according to the momentum scheme."
63 Set use_nesterov = True if you want to use Nesterov momentum.
67 $$accum = accum * momentum + grad$$
Dapi_def_ResourceSparseApplyMomentum.pbtxt34 name: "momentum"
51 var - lr * momentum * accum, so in the end, the var you get is actually
52 var - lr * momentum * accum.
55 summary: "Update relevant entries in \'*var\' and \'*accum\' according to the momentum scheme."
57 Set use_nesterov = True if you want to use Nesterov momentum.
61 accum = accum * momentum + grad
Dapi_def_ResourceSparseApplyKerasMomentum.pbtxt34 name: "momentum"
51 var + momentum * accum, so in the end, the var you get is actually
52 var + momentum * accum.
55 summary: "Update relevant entries in \'*var\' and \'*accum\' according to the momentum scheme."
57 Set use_nesterov = True if you want to use Nesterov momentum.
61 accum = accum * momentum - lr * grad
/external/tensorflow/tensorflow/python/training/
Dmomentum.py46 def __init__(self, learning_rate, momentum, argument
82 self._momentum = momentum
95 momentum = self._momentum
96 if callable(momentum):
97 momentum = momentum()
98 self._momentum_tensor = ops.convert_to_tensor(momentum, name="momentum")
Drmsprop_test.py61 def _rmsprop_update_numpy(self, var, g, mg, rms, mom, lr, decay, momentum, argument
70 mom_t = momentum * mom + lr * g / np.sqrt(denom_t, dtype=denom_t.dtype)
75 lr, decay, momentum, epsilon, centered): argument
88 mom_t[gindex] = momentum * mom[gindex] + lr * gvalue / np.sqrt(denom_t)
95 for (dtype, learning_rate, decay, momentum,
115 momentum=momentum,
152 decay, momentum, epsilon, centered)
155 decay, momentum, epsilon, centered)
179 momentum=0.0,
203 momentum=0.0,
[all …]
Dmomentum_test.py35 from tensorflow.python.training import momentum as momentum_lib
40 def _update_nesterov_momentum_numpy(self, var, accum, g, lr, momentum): argument
41 var = var + accum * lr * momentum
42 accum = accum * momentum + g
44 var = var - accum * lr * momentum
62 momentum = lambda: 0.9 function
65 momentum = momentum()
67 learning_rate=learning_rate, momentum=momentum)
181 learning_rate=2.0, momentum=0.9, use_nesterov=True)
215 learning_rate=2.0, momentum=0.9, use_nesterov=True)
[all …]
/external/tensorflow/tensorflow/python/keras/legacy_tf_layers/
Dnormalization_test.py319 axis=1, epsilon=epsilon, momentum=0.9)
362 axis=2, epsilon=epsilon, momentum=0.9)
404 axis=1, epsilon=epsilon, momentum=0.9)
445 axis=2, epsilon=epsilon, momentum=0.9)
486 axis=3, epsilon=epsilon, momentum=0.9)
527 axis=3, epsilon=epsilon, momentum=0.9, fused=True)
569 axis=1, epsilon=epsilon, momentum=0.9, fused=True)
610 axis=-1, epsilon=epsilon, momentum=0.9)
652 axis=-1, epsilon=epsilon, momentum=0.9)
697 momentum=0.9,
[all …]
Dnormalization.py126 momentum=0.99, argument
149 momentum=momentum,
178 momentum=0.99, argument
316 momentum=momentum,
/external/tensorflow/tensorflow/python/keras/layers/
Dnormalization_v2.py103 momentum=0.99, argument
123 momentum=momentum,
305 momentum=0.99, argument
320 momentum=momentum,
/external/tensorflow/tensorflow/compiler/tests/
Dmomentum_test.py30 from tensorflow.python.training import momentum as momentum_lib
35 def _update_nesterov_momentum_numpy(self, var, accum, g, lr, momentum): argument
36 var += accum * lr * momentum
37 accum = accum * momentum + g
39 var -= accum * lr * momentum
50 learning_rate=2.0, momentum=0.9)
115 learning_rate=0.1, momentum=0.9, use_nesterov=True)
136 momentum=constant_op.constant(0.9))
/external/tensorflow/tensorflow/compiler/jit/tests/
Dkeras_imagenet_main_graph_mode.pbtxt4494 name: "training/SGD/bn2a_branch1/beta/momentum"
4522 s: "training/SGD/bn2a_branch1/beta/momentum"
4527 name: "training/SGD/bn2a_branch1/gamma/momentum"
4555 s: "training/SGD/bn2a_branch1/gamma/momentum"
4560 name: "training/SGD/bn2a_branch2a/beta/momentum"
4588 s: "training/SGD/bn2a_branch2a/beta/momentum"
4593 name: "training/SGD/bn2a_branch2a/gamma/momentum"
4621 s: "training/SGD/bn2a_branch2a/gamma/momentum"
4626 name: "training/SGD/bn2a_branch2b/beta/momentum"
4654 s: "training/SGD/bn2a_branch2b/beta/momentum"
[all …]
/external/tensorflow/tensorflow/python/keras/distribute/
Dtest_example.py61 momentum=0.9, argument
76 renorm=renorm, momentum=momentum, fused=False)
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/
DResourceApplyMomentum.pbtxt20 name: "momentum"
80 name: "momentum"
142 name: "momentum"
205 name: "momentum"
DResourceApplyRMSProp.pbtxt24 name: "momentum"
89 name: "momentum"
156 name: "momentum"
224 name: "momentum"
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v2/
DResourceApplyMomentum.pbtxt20 name: "momentum"
80 name: "momentum"
142 name: "momentum"
205 name: "momentum"
DResourceApplyRMSProp.pbtxt24 name: "momentum"
89 name: "momentum"
156 name: "momentum"
224 name: "momentum"
/external/tensorflow/tensorflow/python/distribute/
Dsingle_loss_example.py84 momentum=0.9, argument
99 renorm=renorm, momentum=momentum, fused=False)

12345