# tensorflow::ops::RandomPoissonV2::Attrs Struct Reference

# tensorflow::
ops::
RandomPoissonV2::
Attrs

`
#include <random_ops.h>
`


Optional attribute setters for
[RandomPoissonV2](https://www.tensorflow.org/versions/r2.6/api_docs/cc/class/tensorflow/ops/random-poisson-v2#classtensorflow_1_1ops_1_1_random_poisson_v2)
.

## Summary

| ### Public attributes ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-poisson-v2/attrs#structtensorflow_1_1ops_1_1_random_poisson_v2_1_1_attrs_1af5e37fba5e53547e0571e7c80b8948b1 = DT_INT64 ` | ` DataType ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-poisson-v2/attrs#structtensorflow_1_1ops_1_1_random_poisson_v2_1_1_attrs_1a2c85360598ed2650e65d38834219dfc4 = 0 ` | ` int64 ` |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-poisson-v2/attrs#structtensorflow_1_1ops_1_1_random_poisson_v2_1_1_attrs_1ae90a1aba0a039f59fde8c789070ffe3c = 0 ` | ` int64 ` |

| ### Public functions ||
|---|---|
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-poisson-v2/attrs#structtensorflow_1_1ops_1_1_random_poisson_v2_1_1_attrs_1a987ceae61e9b0d321f76d91ddac5447a (DataType x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-poisson-v2/attrs#structtensorflow_1_1ops_1_1_random_poisson_v2_1_1_attrs ` Defaults to DT_INT64. |
| ` https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-poisson-v2/attrs#structtensorflow_1_1ops_1_1_random_poisson_v2_1_1_attrs_1afefe4b2b95e899a44715c59de032a52e (int64 x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-poisson-v2/attrs#structtensorflow_1_1ops_1_1_random_poisson_v2_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.6/api_docs/cc/struct/tensorflow/ops/random-poisson-v2/attrs#structtensorflow_1_1ops_1_1_random_poisson_v2_1_1_attrs_1aa06a1ff8926df75b128ec0764a912f99 (int64 x) ` | ` TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.6/api_docs/cc/struct/tensorflow/ops/random-poisson-v2/attrs#structtensorflow_1_1ops_1_1_random_poisson_v2_1_1_attrs ` A second seed to avoid seed collision. |

## Public attributes

### dtype_

```
DataType tensorflow::ops::RandomPoissonV2::Attrs::dtype_ = DT_INT64
```

### seed2_

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

### seed_

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

## Public functions

### Dtype

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomPoissonV2::Attrs::Dtype(
  DataType x
)
```

Defaults to DT_INT64.

### Seed

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

A second seed to avoid seed collision.


Defaults to 0