Searched refs:clip_gradients (Results 1 – 9 of 9) sorted by relevance
/external/tensorflow/tensorflow/contrib/layers/python/layers/ |
D | optimizers.py | 63 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)
|
D | optimizers_test.py | 193 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/ |
D | rnn_ptb_graph_test.py | 47 grads = rnn_ptb.clip_gradients(optimizer.compute_gradients(loss), 0.25) 133 grads = rnn_ptb.clip_gradients(optimizer.compute_gradients(loss), 0.25)
|
D | rnn_ptb.py | 149 def clip_gradients(grads_and_vars, clip_ratio): function 207 clip_gradients(grads(train_seq, train_target), clip_ratio))
|
D | rnn_ptb_test.py | 121 rnn_ptb.clip_gradients(grads(sequence_batch, sequence_batch), 0.25))
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/ |
D | dnn_linear_combined.py | 342 clip_gradients=gradient_clip_norm, 355 clip_gradients=gradient_clip_norm,
|
D | state_saving_rnn_estimator.py | 524 clip_gradients=gradient_clipping_norm,
|
D | dynamic_rnn_estimator.py | 531 clip_gradients=gradient_clipping_norm,
|
D | dnn.py | 204 clip_gradients=gradient_clip_norm,
|