tf.add_to_collection(name, value)

tf.add_to_collection(name, value)

See the guide: Building Graphs > Graph collections

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

See tf.Graph.add_to_collection for more details.


  • name: The key for the collection. For example, the GraphKeys class contains many standard names for collections.
  • value: The value to add to the collection.

Defined in tensorflow/python/framework/