tf.compat.v1.add_to_collections
Stay organized with collections
Save and categorize content based on your preferences.
Wrapper for Graph.add_to_collections()
using the default graph.
tf.compat.v1.add_to_collections(
names, value
) -> None
See tf.Graph.add_to_collections
for more details.
Args |
names
|
The key for the collections. The GraphKeys class contains many
standard names for collections.
|
value
|
The value to add to the collections.
|
Collections are only supported in eager when variables are created inside
an EagerVariableStore (e.g. as part of a layer or template).
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. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.compat.v1.add_to_collections\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/python/framework/ops.py#L5415-L5432) |\n\nWrapper for [`Graph.add_to_collections()`](https://www.tensorflow.org/api_docs/python/tf/Graph#add_to_collections) using the default graph. \n\n tf.compat.v1.add_to_collections(\n names, value\n ) -\u003e None\n\nSee [`tf.Graph.add_to_collections`](../../../tf/Graph#add_to_collections)\nfor more details.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------|--------------------------------------------------------------------------------------------------|\n| `names` | The key for the collections. The `GraphKeys` class contains many standard names for collections. |\n| `value` | The value to add to the collections. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\neager compatibility\n-------------------\n\n\u003cbr /\u003e\n\nCollections are only supported in eager when variables are created inside\nan EagerVariableStore (e.g. as part of a layer or template).\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]