# tensorflow::ops::RandomGamma::Attrs Struct Reference

# tensorflow::ops::RandomGamma::Attrs

`#include <random_ops.h>`

Optional attribute setters for [RandomGamma](https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-gamma#classtensorflow_1_1ops_1_1_random_gamma).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-gamma/attrs#structtensorflow_1_1ops_1_1_random_gamma_1_1_attrs_1a031cb091ec0798df6524cf0587ac20f2 = 0` | `int64` |
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-gamma/attrs#structtensorflow_1_1ops_1_1_random_gamma_1_1_attrs_1aef6eba784ccd60b0b640c6fa2f19d662 = 0` | `int64` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-gamma/attrs#structtensorflow_1_1ops_1_1_random_gamma_1_1_attrs_1a8058868cb9c9973929ced3198b40155d(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-gamma/attrs#structtensorflow_1_1ops_1_1_random_gamma_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.3/api_docs/cc/struct/tensorflow/ops/random-gamma/attrs#structtensorflow_1_1ops_1_1_random_gamma_1_1_attrs_1a3291a6d1283b8defce2f97595c31833f(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-gamma/attrs#structtensorflow_1_1ops_1_1_random_gamma_1_1_attrs` A second seed to avoid seed collision. |

## Public attributes

### seed2_

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

### seed_

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

## Public functions

### Seed

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

Defaults to 0