# tensorflow::ops::TruncatedNormal::Attrs

`#include <random_ops.h>`

Optional attribute setters for [TruncatedNormal](https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/truncated-normal#classtensorflow_1_1ops_1_1_truncated_normal).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/truncated-normal/attrs#structtensorflow_1_1ops_1_1_truncated_normal_1_1_attrs_1a8c7d04cc1166de9126777b9501f02946 = 0` | `int64` |
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/truncated-normal/attrs#structtensorflow_1_1ops_1_1_truncated_normal_1_1_attrs_1a7ee6c42a0dce4fa66944298387f6dd60 = 0` | `int64` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/truncated-normal/attrs#structtensorflow_1_1ops_1_1_truncated_normal_1_1_attrs_1ac76082d120bb94c94a7774c81ed4a56a(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/truncated-normal/attrs#structtensorflow_1_1ops_1_1_truncated_normal_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/r1.15/api_docs/cc/struct/tensorflow/ops/truncated-normal/attrs#structtensorflow_1_1ops_1_1_truncated_normal_1_1_attrs_1a0464a3146de59f0b0a808a8eb8ef97b9(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/truncated-normal/attrs#structtensorflow_1_1ops_1_1_truncated_normal_1_1_attrs` A second seed to avoid seed collision. |

## Public attributes

### seed2_

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

### seed_

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

## Public functions

### Seed

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

Defaults to 0