TensorFlow 2.0 Beta is available Learn more

tf.initializers.local_variables

View source on GitHub

Returns an Op that initializes all local variables.

Aliases:

  • tf.compat.v1.initializers.local_variables
  • tf.compat.v1.local_variables_initializer
  • tf.local_variables_initializer
tf.initializers.local_variables()

This is just a shortcut for variables_initializer(local_variables())

Returns:

An Op that initializes all local variables in the graph.