# tensorflow::ops::AllCandidateSampler::Attrs

`#include <candidate_sampling_ops.h>`

Optional attribute setters for [AllCandidateSampler](https://www.tensorflow.org/versions/r2.0/api_docs/cc/class/tensorflow/ops/all-candidate-sampler#classtensorflow_1_1ops_1_1_all_candidate_sampler).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/all-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_all_candidate_sampler_1_1_attrs_1a106cce50bdfd551481bf8201c25b79e0 = 0` | `int64` |
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/all-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_all_candidate_sampler_1_1_attrs_1ae932ae96fe5974bab81fe2fd736e1f5d = 0` | `int64` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/all-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_all_candidate_sampler_1_1_attrs_1a5d1d847987b55a7f774d7ab6622371c8(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/all-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_all_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/all-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_all_candidate_sampler_1_1_attrs_1a13f740f05760bf2cf33ba9b00f163546(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/all-candidate-sampler/attrs#structtensorflow_1_1ops_1_1_all_candidate_sampler_1_1_attrs` An second seed to avoid seed collision. |

## Public attributes

### seed2_

```
int64 tensorflow::ops::AllCandidateSampler::Attrs::seed2_ = 0
```

### seed_

```
int64 tensorflow::ops::AllCandidateSampler::Attrs::seed_ = 0
```

## Public functions

### Seed

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::AllCandidateSampler::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::AllCandidateSampler::Attrs::Seed2(
  int64 x
)
```
An second seed to avoid seed collision.

Defaults to 0