Key for collections of integers.
Key for collections of ops.
Key for collections of op outputs.
Key for collections of resources.
Key for collections of savers.
Key for collections of strings.
Key for collections of variables.
Key to collect activations.
Key to collect asset filepaths.
Key to collect asset filepaths. An asset represents an external resource like a vocabulary file.
Key to collect biases.
Key to collect the default collection of Variable
objects, shared across distributed environment (model
variables are subset of these).
Key to collect the default collection of Variable
objects, shared across distributed environment (model
variables are subset of these). Commonly, all TRAINABLE_VARIABLES
variables will be in MODEL_VARIABLES
, and
all MODEL_VARIABLES
variables will be in GLOBAL_VARIABLES
.
Key to collect all local resources used in this graph which need to be initialized once per session.
Key to collect the subset of Variable
objects that are local to each machine.
Key to collect the subset of Variable
objects that are local to each machine. Usually used for temporary
variables, like counters.
Key to collect losses.
Key to collect the subset of Variable
objects that are used in models for inference (feed forward).
Key to collect the subset of Variable
objects that are used in models for inference (feed forward).
TODO: Note: use tf.contrib.framework.model_variable
to add to this collection.
Key to collect the subset of Variable
objects that will also keep moving averages.
Key to collect the graph random seed values.
Key to collect the graph random seed values. The seed values collection should have only one element representing the graph random seed value.
Key to collect regularization losses at graph construction.
Key to collect savers.
Key to collect all shared resources used by the graph which need to be initialized once per cluster.
Key to collect streaming model ports.
Key to collect the summary Output
objects that have been created in the graph.
Key to collect the table initializers that have been created in the graph.
Key to collect the subset of Variable
objects that will be trained using an optimizer.
Key to collect the unbound inputs when serializing/deserializing graphs.
Key to collect update ops.
Key to collect weights.
Contains standard names to use for graph collections.
The standard library uses various well-known names to collect and retrieve values associated with a graph. For example, the optimizers default to optimizing the variables collected under
Graph.Keys.TRAINABLE_VARIABLES
if none is specified, but it is also possible to pass an explicit list of variables.Note: Whenever a new key is added, appropriate edits need to be made to the Keys.fromName function.