tf.math.sobol_sample  |  TensorFlow v2.16.1 (original) (raw)

tf.math.sobol_sample

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

Generates points from the Sobol sequence.

View aliases

Compat aliases for migration

SeeMigration guide for more details.

tf.compat.v1.math.sobol_sample

tf.math.sobol_sample(
    dim,
    num_results,
    skip=0,
    dtype=tf.dtypes.float32,
    name=None
)

Creates a Sobol sequence with num_results samples. Each sample has dimensiondim. Skips the first skip samples.

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 ortf.float64. Defaults to tf.float32.
name (Optional) Python str name prefixed to ops created by this function.
Returns
Tensor of samples from Sobol sequence with shape [num_results, dim].

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.