# tensorflow::ops::ComputeAccidentalHits::Attrs Struct Reference

# tensorflow::
ops::
ComputeAccidentalHits::
Attrs

`
#include <candidate_sampling_ops.h>
`


Optional attribute setters for
[ComputeAccidentalHits](https://www.tensorflow.org/versions/r2.5/api_docs/cc/class/tensorflow/ops/compute-accidental-hits#classtensorflow_1_1ops_1_1_compute_accidental_hits)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/compute-accidental-hits/attrs#structtensorflow_1_1ops_1_1_compute_accidental_hits_1_1_attrs_1a99fd3bb162e1986c80ce39b89719a1d1 = 0 ` | ` int64 ` |
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/compute-accidental-hits/attrs#structtensorflow_1_1ops_1_1_compute_accidental_hits_1_1_attrs_1a10c7cf573d98ea9544d254035f2fd6e3 = 0 ` | ` int64 ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/compute-accidental-hits/attrs#structtensorflow_1_1ops_1_1_compute_accidental_hits_1_1_attrs_1af10a5866bca140fdc513f5f56ee46756 (int64 x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/compute-accidental-hits/attrs#structtensorflow_1_1ops_1_1_compute_accidental_hits_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.5/api_docs/cc/struct/tensorflow/ops/compute-accidental-hits/attrs#structtensorflow_1_1ops_1_1_compute_accidental_hits_1_1_attrs_1aec5aeae0e57560e1629549e7d22a994c (int64 x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.5/api_docs/cc/struct/tensorflow/ops/compute-accidental-hits/attrs#structtensorflow_1_1ops_1_1_compute_accidental_hits_1_1_attrs ` An second seed to avoid seed collision. |

## Public attributes

### seed2_

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

### seed_

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

## Public functions

### Seed

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::ComputeAccidentalHits::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::ComputeAccidentalHits::Attrs::Seed2(
  int64 x
)
```

An second seed to avoid seed collision.


Defaults to 0