TensorFlow

API

 tf.compat / v1 / v1.add_to_collections


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

See tf.Graph.add_to_collections for more details.

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 only supported in eager when variables are created inside an EagerVariableStore (e.g. as part of a layer or template).


此页内容是否对您有帮助