tf.math.sobol_sample
Generates points from the Sobol sequence.
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 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].
|
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 2021-02-18 UTC.
[null,null,["Last updated 2021-02-18 UTC."],[],[]]