Commit 19fb6cf6 authored by Mustafa Ispir's avatar Mustafa Ispir Committed by TensorFlower Gardener
Browse files

Add gradient transformation wrapper to be used in canned estimators.

Example:
    optimizer = some_optimizer
    optimizer = tf.contrib.estimator.clip_gradients_by_norm(optimizer, norm)
    estimator = tf.estimator.DNNClassifier(
        feature_columns=[...],
        hidden_units=[1024, 512, 256],
        optimizer=optimizer)

PiperOrigin-RevId: 169477090
parent e9602e78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment