W3cubDocs

/TensorFlow Python

tf.add_to_collections

tf.add_to_collections(
    names,
    value
)

Defined in tensorflow/python/framework/ops.py.

Wrapper for Graph.add_to_collections() using the default graph.

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.

Eager Compatibility

Collections are not supported when eager execution is enabled.

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/add_to_collections