W3cubDocs

/TensorFlow 2.4

tf.math.sobol_sample

Generates points from the Sobol sequence.

Creates a Sobol sequence with num_results samples. Each sample has dimension dim. 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 or tf.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].

© 2020 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/versions/r2.4/api_docs/python/tf/math/sobol_sample