tf.compat.v1.GraphKeys  |  TensorFlow v2.16.1 (original) (raw)

tf.compat.v1.GraphKeys

Stay organized with collections Save and categorize content based on your preferences.

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, thetf.Optimizer subclasses default to optimizing the variables collected under tf.GraphKeys.TRAINABLE_VARIABLES if none is specified, but it is also possible to pass an explicit list of variables.

The following standard keys are defined:

The following standard keys are defined, but their collections are notautomatically populated as many of the others are:

Class Variables
ACTIVATIONS 'activations'
ASSET_FILEPATHS 'asset_filepaths'
BIASES 'biases'
CONCATENATED_VARIABLES 'concatenated_variables'
COND_CONTEXT 'cond_context'
EVAL_STEP 'eval_step'
GLOBAL_STEP 'global_step'
GLOBAL_VARIABLES 'variables'
INIT_OP 'init_op'
LOCAL_INIT_OP 'local_init_op'
LOCAL_RESOURCES 'local_resources'
LOCAL_VARIABLES 'local_variables'
LOSSES 'losses'
METRIC_VARIABLES 'metric_variables'
MODEL_VARIABLES 'model_variables'
MOVING_AVERAGE_VARIABLES 'moving_average_variables'
QUEUE_RUNNERS 'queue_runners'
READY_FOR_LOCAL_INIT_OP 'ready_for_local_init_op'
READY_OP 'ready_op'
REGULARIZATION_LOSSES 'regularization_losses'
RESOURCES 'resources'
SAVEABLE_OBJECTS 'saveable_objects'
SAVERS 'savers'
SUMMARIES 'summaries'
SUMMARY_OP 'summary_op'
TABLE_INITIALIZERS 'table_initializer'
TRAINABLE_RESOURCE_VARIABLES 'trainable_resource_variables'
TRAINABLE_VARIABLES 'trainable_variables'
TRAIN_OP 'train_op'
UPDATE_OPS 'update_ops'
VARIABLES 'variables'
WEIGHTS 'weights'
WHILE_CONTEXT 'while_context'

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.

Last updated 2024-04-26 UTC.