tensorflow:: ops:: LearnedUnigramCandidateSampler:: Attrs

#include <candidate_sampling_ops.h>

Optional attribute setters for LearnedUnigramCandidateSampler .

Summary

Public attributes

seed2_ = 0
int64
seed_ = 0
int64

Public functions

Seed (int64 x)
TF_MUST_USE_RESULT Attrs
If either seed or seed2 are set to be non-zero, the random number generator is seeded by the given seed.
Seed2 (int64 x)
TF_MUST_USE_RESULT Attrs
An second seed to avoid seed collision.

Public attributes

seed2_

int64 tensorflow::ops::LearnedUnigramCandidateSampler::Attrs::seed2_ = 0

seed_

int64 tensorflow::ops::LearnedUnigramCandidateSampler::Attrs::seed_ = 0

Public functions

Seed

TF_MUST_USE_RESULT Attrs tensorflow::ops::LearnedUnigramCandidateSampler::Attrs::Seed(
  int64 x
)

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.

Defaults to 0

Seed2

TF_MUST_USE_RESULT Attrs tensorflow::ops::LearnedUnigramCandidateSampler::Attrs::Seed2(
  int64 x
)

An second seed to avoid seed collision.

Defaults to 0