tf.contrib.eager.get_optimizer_variables
Stay organized with collections
Save and categorize content based on your preferences.
Returns a list of variables for the given tf.compat.v1.train.Optimizer
.
tf.contrib.eager.get_optimizer_variables(
optimizer
)
Equivalent to optimizer.variables()
.
Returns |
A list of variables which have been created by the Optimizer .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.contrib.eager.get_optimizer_variables\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/eager/python/saver.py#L175-L187) |\n\nReturns a list of variables for the given [`tf.compat.v1.train.Optimizer`](../../../tf/train/Optimizer). \n\n tf.contrib.eager.get_optimizer_variables(\n optimizer\n )\n\nEquivalent to `optimizer.variables()`.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `optimizer` | An instance of [`tf.compat.v1.train.Optimizer`](../../../tf/train/Optimizer) which has created variables (typically after a call to [`Optimizer.minimize`](/api_docs/python/tf/keras/optimizers/Optimizer#minimize)). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A list of variables which have been created by the `Optimizer`. ||\n\n\u003cbr /\u003e"]]