Class ThreadUnsafeUnigramCandidateSampler.Options

java.lang.Object
org.tensorflow.op.random.ThreadUnsafeUnigramCandidateSampler.Options
Enclosing class:
ThreadUnsafeUnigramCandidateSampler

public static class ThreadUnsafeUnigramCandidateSampler.Options extends Object
Optional attributes for ThreadUnsafeUnigramCandidateSampler
  • 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.