# tensorflow::ops::LearnedUnigramCandidateSampler::Attrs

`#include <candidate_sampling_ops.h>`

Optional attribute setters for [LearnedUnigramCandidateSampler](https://www.tensorflow.org/versions/r2.0/api_docs/cc/class/tensorflow/ops/learned-unigram-candidate-sampler#classtensorflow_1_1ops_1_1_learned_unigram_candidate_sampler).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/learned-unigram-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_learned_unigram_candidate_sampler_1_1_attrs_1ad8e2e8e329033e50c24959c1860c2858 = 0` | `int64` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/learned-unigram-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_learned_unigram_candidate_sampler_1_1_attrs_1aa96c2e366ab7256a6233622c245f0b7e = 0` | `int64` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/learned-unigram-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_learned_unigram_candidate_sampler_1_1_attrs_1a1eded3e72beecbdf071ca943bb214d82(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/learned-unigram-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_learned_unigram_candidate_sampler_1_1_attrs` If either seed or seed2 are set to be non-zero, the random number generator is seeded by the given seed. |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/learned-unigram-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_learned_unigram_candidate_sampler_1_1_attrs_1a09b6fb797c2b0649018c97574d2f8405(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/learned-unigram-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_learned_unigram_candidate_sampler_1_1_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