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

tf.compat.v1.get_seed

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

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

View aliases

Compat aliases for migration

SeeMigration guide for more details.

tf.compat.v1.random.get_seed

tf.compat.v1.get_seed(
    op_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, seetf.compat.v1.random.set_random_seed.

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

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.