W3cubDocs

/TensorFlow Python

tf.get_seed

tf.get_seed(op_seed)

Defined in tensorflow/python/framework/random_seed.py.

See the guide: Building Graphs > Defining new operations

Returns the local seeds an operation should use given an op-specific seed.

Given operation-specific seed, op_seed, this helper function returns two seeds derived from graph-level and op-level seeds. Many random operations internally use the two seeds to allow user to change the seed globally for a graph, or for only specific operations.

For details on how the graph-level seed interacts with op seeds, see tf.set_random_seed.

Args:

  • op_seed: integer.

Returns:

A tuple of two integers that should be used for the local seed of this operation.

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/get_seed