Class ThreadUnsafeUnigramCandidateSampler.Options
java.lang.Object
org.tensorflow.op.random.ThreadUnsafeUnigramCandidateSampler.Options
- Enclosing class:
ThreadUnsafeUnigramCandidateSampler
Optional attributes for
ThreadUnsafeUnigramCandidateSampler-
Method Summary
Modifier and TypeMethodDescriptionSets the seed option.Sets the seed2 option.
-
Method Details
-
seed
Sets the seed option.- Parameters:
seed- If either seed or seed2 are set to be non-zero, the random number generator is seeded by the given seed. Otherwise, it is seeded by a random seed.- Returns:
- this Options instance.
-
seed2
Sets the seed2 option.- Parameters:
seed2- An second seed to avoid seed collision.- Returns:
- this Options instance.
-