<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.21.0/tensorflow/python/ops/math_ops.py#L5824-L5846) |

Generates points from the Sobol sequence.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.math.sobol_sample(
        dim,
        num_results,
        skip=0,
        dtype=https://www.tensorflow.org/api_docs/python/tf/dtypes#float32,
        name=None
    )

Creates a Sobol sequence with `num_results` samples. Each sample has dimension
`dim`. Skips the first `skip` samples.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `dim` | Positive scalar `Tensor` representing each sample's dimension. |
| `num_results` | Positive scalar `Tensor` of dtype int32. The number of Sobol points to return in the output. |
| `skip` | (Optional) Positive scalar `Tensor` of dtype int32. The number of initial points of the Sobol sequence to skip. Default value is 0. |
| `dtype` | (Optional) The `tf.Dtype` of the sample. One of: [`tf.float32`](https://www.tensorflow.org/api_docs/python/tf#float32) or [`tf.float64`](https://www.tensorflow.org/api_docs/python/tf#float64). Defaults to [`tf.float32`](https://www.tensorflow.org/api_docs/python/tf#float32). |
| `name` | (Optional) Python `str` name prefixed to ops created by this function. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `Tensor` of samples from Sobol sequence with `shape` \[num_results, dim\]. ||

<br />