#include <random_ops.h>
Optional attribute setters for Multinomial.
Public attributes | |
---|---|
output_dtype_ = DT_INT64 | DataType |
seed2_ = 0 | int64 |
seed_ = 0 | int64 |
Public functions | |
---|---|
OutputDtype(DataType x) | TF_MUST_USE_RESULT Attrs Defaults to DT_INT64. |
Seed(int64 x) | TF_MUST_USE_RESULT Attrs If either seed or seed2 is set to be non-zero, the internal random number generator is seeded by the given seed. |
Seed2(int64 x) | TF_MUST_USE_RESULT Attrs A second seed to avoid seed collision. |
DataType tensorflow::ops::Multinomial::Attrs::output_dtype_ = DT_INT64
int64 tensorflow::ops::Multinomial::Attrs::seed2_ = 0
int64 tensorflow::ops::Multinomial::Attrs::seed_ = 0
TF_MUST_USE_RESULT Attrs tensorflow::ops::Multinomial::Attrs::OutputDtype( DataType x )
Defaults to DT_INT64.
TF_MUST_USE_RESULT Attrs tensorflow::ops::Multinomial::Attrs::Seed( int64 x )
If either seed or seed2 is set to be non-zero, the internal random number generator is seeded by the given seed.
Otherwise, a random seed is used.
Defaults to 0
TF_MUST_USE_RESULT Attrs tensorflow::ops::Multinomial::Attrs::Seed2( int64 x )
A second seed to avoid seed collision.
Defaults to 0
© 2018 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/api_docs/cc/struct/tensorflow/ops/multinomial/attrs.html