Wrapper for Graph.add_to_collection() using the default graph.
tf.compat.v1.add_to_collection(
    name, value
)
  See tf.Graph.add_to_collection for more details.
| Args | |
|---|---|
| name | The key for the collection. For example, the GraphKeysclass contains many standard names for collections. | 
| value | The value to add to the collection. | 
eager compatibility
Collections are only supported in eager when variables are created inside an EagerVariableStore (e.g. as part of a layer or template).
    © 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
    https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/compat/v1/add_to_collection