# tf.tpu.experimental.StochasticGradientDescentParameters

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/tpu/tpu_embedding.py#L377-L406) |

Optimization parameters for stochastic gradient descent for TPU embeddings.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.tpu.experimental.StochasticGradientDescentParameters`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/tpu/experimental/StochasticGradientDescentParameters)

<br />

    tf.tpu.experimental.StochasticGradientDescentParameters(
        learning_rate, clip_weight_min=None, clip_weight_max=None
    )

Pass this to [`tf.estimator.tpu.experimental.EmbeddingConfigSpec`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/estimator/tpu/experimental/EmbeddingConfigSpec) via the
`optimization_parameters` argument to set the optimizer and its parameters.
See the documentation for [`tf.estimator.tpu.experimental.EmbeddingConfigSpec`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/estimator/tpu/experimental/EmbeddingConfigSpec)
for more details.

    estimator = tf.estimator.tpu.TPUEstimator(
        ...
        embedding_config_spec=tf.estimator.tpu.experimental.EmbeddingConfigSpec(
            ...
            optimization_parameters=(
                tf.tpu.experimental.StochasticGradientDescentParameters(0.1))))

<br />

<br />

<br />

| ## Args ||
|---|---|
| `learning_rate` | a floating point value. The learning rate. |
| `clip_weight_min` | the minimum value to clip by; None means -infinity. |
| `clip_weight_max` | the maximum value to clip by; None means +infinity. |

<br />