# tf.compat.v1.get_seed

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/framework/random_seed.py#L38-L93) |

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

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.random.get_seed`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/get_seed)

<br />

    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, see
[`tf.compat.v1.random.set_random_seed`](https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/compat/v1/set_random_seed).

<br />

<br />

<br />

| ## Args ||
|---|---|
| `op_seed` | integer. |

<br />

<br />

<br />

<br />

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

<br />