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 tf.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.
这个标准库用很多种大家都知道的名称来收集并检索与图表相关联的值。例如,如果没有指定,则tf.Optimizer子类默认优化在tf.GraphKeys.TRAINABLE_VARIABLES下收集的变量,但也可以传递显式的变量列表。
The following standard keys are defined:
GLOBAL_VARIABLES
: the default collection ofVariable
objects, shared across distributed environment (model variables are subset of these). Seetf.global_variables
for more details. Commonly, allTRAINABLE_VARIABLES
variables will be inMODEL_VARIABLES
, and allMODEL_VARIABLES
variables will be inGLOBAL_VARIABLES
.- 变量对象的集合,在分布式环境中共享。通常,
TRAINBLE_VARIBALES
变量会存在于MODEL_VARIABLES
, 所有的MODEL_VARIABLES
变量会存在于GLOBAL_VARIABLES
未完待续。。