Home
last modified time | relevance | path

Searched refs:clip_gradients (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/contrib/layers/python/layers/
Doptimizers.py63 clip_gradients=None, argument
261 if isinstance(clip_gradients, float):
262 gradients = _clip_gradients_by_norm(gradients, clip_gradients)
263 elif callable(clip_gradients):
264 gradients = clip_gradients(gradients)
265 elif clip_gradients is not None:
267 "Unknown type %s for clip_gradients" % type(clip_gradients))
288 if clip_gradients is not None and ("global_gradient_norm" in summaries or
305 def _clip_gradients_by_norm(grads_and_vars, clip_gradients): argument
308 clipped_gradients, _ = clip_ops.clip_by_global_norm(gradients, clip_gradients)
Doptimizers_test.py193 clip_gradients=10.0)
208 clip_gradients=0.1)
218 clip_gradients = optimizers_lib.adaptive_clipping_fn()
224 clip_gradients=clip_gradients)
301 clip_gradients=10.0)
/external/tensorflow/tensorflow/contrib/eager/python/examples/rnn_ptb/
Drnn_ptb_graph_test.py47 grads = rnn_ptb.clip_gradients(optimizer.compute_gradients(loss), 0.25)
133 grads = rnn_ptb.clip_gradients(optimizer.compute_gradients(loss), 0.25)
Drnn_ptb.py149 def clip_gradients(grads_and_vars, clip_ratio): function
207 clip_gradients(grads(train_seq, train_target), clip_ratio))
Drnn_ptb_test.py121 rnn_ptb.clip_gradients(grads(sequence_batch, sequence_batch), 0.25))
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Ddnn_linear_combined.py342 clip_gradients=gradient_clip_norm,
355 clip_gradients=gradient_clip_norm,
Dstate_saving_rnn_estimator.py524 clip_gradients=gradient_clipping_norm,
Ddynamic_rnn_estimator.py531 clip_gradients=gradient_clipping_norm,
Ddnn.py204 clip_gradients=gradient_clip_norm,