Home
last modified time | relevance | path

Searched refs:decay_steps (Results 1 – 25 of 35) sorted by relevance

12

/external/tensorflow/tensorflow/python/keras/optimizer_v2/
Dlearning_rate_schedule.py71 decay_steps, argument
138 self.decay_steps = decay_steps
146 [self.initial_learning_rate, step, self.decay_steps, self.decay_rate]
151 decay_steps = math_ops.cast(self.decay_steps, dtype)
155 p = global_step_recomp / decay_steps
164 "decay_steps": self.decay_steps,
295 decay_steps, argument
385 self.decay_steps = decay_steps
394 [self.initial_learning_rate, step, self.decay_steps,
404 decay_steps_recomp = math_ops.cast(self.decay_steps, dtype)
[all …]
Dlearning_rate_schedule_test.py292 decay_steps = 10
295 lr, decay_steps, cycle=True)
344 def np_cosine_decay(self, step, decay_steps, alpha=0.0): argument
345 step = min(step, decay_steps)
346 completed_fraction = step / decay_steps
381 def np_cosine_decay_restarts(self, step, decay_steps, t_mul=2.0, m_mul=1.0, argument
384 while step >= decay_steps:
385 step -= decay_steps
386 decay_steps *= t_mul
389 completed_fraction = step / decay_steps
[all …]
/external/tensorflow/tensorflow/contrib/opt/python/training/
Dsign_decay.py33 def get_linear_decay_fn(decay_steps): argument
55 global_step = math_ops.minimum(global_step, decay_steps)
57 decay_steps, dtypes.int32) - math_ops.cast(global_step, dtypes.int32)
59 math_ops.cast(decay_steps, dtypes.float32))
65 def get_cosine_decay_fn(decay_steps, num_periods=0.5, zero_after=None): argument
96 global_step = math_ops.minimum(global_step, decay_steps)
98 math_ops.cast(decay_steps, dtypes.float32))
110 def get_restart_decay_fn(decay_steps, num_periods=1, zero_after=None): argument
147 global_step = math_ops.minimum(global_step, decay_steps)
149 decay_steps)
[all …]
Dsign_decay_test.py27 def py_linear_decay_fn(decay_steps): argument
30 step = min(step, decay_steps)
31 return float(decay_steps - step) / decay_steps
36 def py_cosine_decay_fn(decay_steps, num_periods=0.5, zero_after=None): argument
39 step = min(step, decay_steps)
40 fraction = 2.0 * num_periods * step / float(decay_steps)
48 def py_restart_decay_fn(decay_steps, num_periods=1, zero_after=None): argument
51 step = min(step, decay_steps)
52 tmp = num_periods * step / float(decay_steps)
54 num_periods * step % decay_steps) / float(decay_steps)
Daddsign_test.py34 def py_linear_decay_fn(decay_steps): argument
36 step = min(step, decay_steps)
37 return float(decay_steps - step) / decay_steps
149 decay_steps = 10
150 sign_decay_fn = sign_decay.get_linear_decay_fn(decay_steps)
151 py_sign_decay_fn = py_linear_decay_fn(decay_steps)
249 decay_steps = 10
250 sign_decay_fn = sign_decay.get_linear_decay_fn(decay_steps)
251 py_sign_decay_fn = py_linear_decay_fn(decay_steps)
Dpowersign_test.py35 def py_linear_decay_fn(decay_steps): argument
37 step = min(step, decay_steps)
38 return float(decay_steps - step) / decay_steps
151 decay_steps = 10
152 sign_decay_fn = sign_decay.get_linear_decay_fn(decay_steps)
153 py_sign_decay_fn = py_linear_decay_fn(decay_steps)
254 decay_steps = 10
255 sign_decay_fn = sign_decay.get_linear_decay_fn(decay_steps)
256 py_sign_decay_fn = py_linear_decay_fn(decay_steps)
/external/tensorflow/tensorflow/python/training/
Dlearning_rate_decay.py31 decay_steps, argument
95 decay_steps,
161 decay_steps, argument
245 decay_steps,
261 decay_steps, argument
332 learning_rate, decay_steps, natural_exp_rate, staircase=staircase,
345 decay_steps, argument
416 decay_steps,
429 def cosine_decay(learning_rate, global_step, decay_steps, alpha=0.0, name=None): argument
478 learning_rate, decay_steps, alpha=alpha, name=name)
[all …]
Dlearning_rate_decay_test.py261 decay_steps = 10
264 lr, step, decay_steps, cycle=True)
337 def np_cosine_decay(self, step, decay_steps, alpha=0.0): argument
338 step = min(step, decay_steps)
339 completed_fraction = step / decay_steps
367 def np_cosine_decay_restarts(self, step, decay_steps, t_mul=2.0, m_mul=1.0, argument
370 while step >= decay_steps:
371 step -= decay_steps
372 decay_steps *= t_mul
375 completed_fraction = step / decay_steps
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Daddsign_test.py32 def py_linear_decay_fn(decay_steps): argument
34 step = min(step, decay_steps)
35 return float(decay_steps - step) / decay_steps
132 decay_steps = 10
133 sign_decay_fn = sign_decay.get_linear_decay_fn(decay_steps)
134 py_sign_decay_fn = py_linear_decay_fn(decay_steps)
Dpowersign_test.py33 def py_linear_decay_fn(decay_steps): argument
35 step = min(step, decay_steps)
36 return float(decay_steps - step) / decay_steps
132 decay_steps = 10
133 sign_decay_fn = sign_decay.get_linear_decay_fn(decay_steps)
134 py_sign_decay_fn = py_linear_decay_fn(decay_steps)
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.train.pbtxt285 …argspec: "args=[\'learning_rate\', \'global_step\', \'decay_steps\', \'alpha\', \'name\'], varargs…
301 …argspec: "args=[\'learning_rate\', \'global_step\', \'decay_steps\', \'decay_rate\', \'staircase\'…
345 …argspec: "args=[\'learning_rate\', \'global_step\', \'decay_steps\', \'decay_rate\', \'staircase\'…
357 …argspec: "args=[\'learning_rate\', \'global_step\', \'decay_steps\', \'num_periods\', \'alpha\', \…
393 …argspec: "args=[\'learning_rate\', \'global_step\', \'decay_steps\', \'decay_rate\', \'staircase\'…
397 …argspec: "args=[\'learning_rate\', \'global_step\', \'decay_steps\', \'initial_variance\', \'varia…
409 …argspec: "args=[\'learning_rate\', \'global_step\', \'decay_steps\', \'end_learning_rate\', \'powe…
Dtensorflow.keras.experimental.-cosine-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'alpha\', \'name\'], vararg…
Dtensorflow.keras.optimizers.schedules.-exponential-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'decay_rate\', \'staircase\…
Dtensorflow.keras.experimental.-linear-cosine-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'num_periods\', \'alpha\', …
Dtensorflow.keras.optimizers.schedules.-inverse-time-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'decay_rate\', \'staircase\…
Dtensorflow.keras.optimizers.schedules.-polynomial-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'end_learning_rate\', \'pow…
Dtensorflow.keras.experimental.-noisy-linear-cosine-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'initial_variance\', \'vari…
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.keras.experimental.-cosine-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'alpha\', \'name\'], vararg…
Dtensorflow.keras.experimental.-linear-cosine-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'num_periods\', \'alpha\', …
Dtensorflow.keras.optimizers.schedules.-exponential-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'decay_rate\', \'staircase\…
Dtensorflow.keras.optimizers.schedules.-inverse-time-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'decay_rate\', \'staircase\…
Dtensorflow.keras.optimizers.schedules.-polynomial-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'end_learning_rate\', \'pow…
Dtensorflow.optimizers.schedules.-exponential-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'decay_rate\', \'staircase\…
Dtensorflow.optimizers.schedules.-inverse-time-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'decay_rate\', \'staircase\…
Dtensorflow.keras.experimental.-noisy-linear-cosine-decay.pbtxt8 …argspec: "args=[\'self\', \'initial_learning_rate\', \'decay_steps\', \'initial_variance\', \'vari…

12