# tensorflow::ops::Restore::Attrs

`#include <io_ops.h>`

Optional attribute setters for [Restore](https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/restore#classtensorflow_1_1ops_1_1_restore).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/restore/attrs#structtensorflow_1_1ops_1_1_restore_1_1_attrs_1aba196bfd5646d4f04c9d34181d2a5a90 = -1` | `int64` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/restore/attrs#structtensorflow_1_1ops_1_1_restore_1_1_attrs_1a1a01e09ca33fc5f4aa22450511ea876d(int64 x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r1.15/api_docs/cc/struct/tensorflow/ops/restore/attrs#structtensorflow_1_1ops_1_1_restore_1_1_attrs` Index of file to open first if multiple files match `file_pattern`. |

## Public attributes

### preferred_shard_

```
int64 tensorflow::ops::Restore::Attrs::preferred_shard_ = -1
```

## Public functions

### PreferredShard

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::Restore::Attrs::PreferredShard(
  int64 x
)
```
Index of file to open first if multiple files match `file_pattern`.

Defaults to -1