tf.compat.v1.add_to_collection

View source on GitHub

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:

Eager Compatibility

Collections are only supported in eager when variables are created inside an EagerVariableStore (e.g. as part of a layer or template).