# tensorflow::ops::RestoreSlice::Attrs

`#include <io_ops.h>`

Optional attribute setters for [RestoreSlice](https://www.tensorflow.org/versions/r2.0/api_docs/cc/class/tensorflow/ops/restore-slice#classtensorflow_1_1ops_1_1_restore_slice).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.0/api_docs/cc/struct/tensorflow/ops/restore-slice/attrs#structtensorflow_1_1ops_1_1_restore_slice_1_1_attrs_1a435b3e19b1223b9ea5ef37bcbb1c8915 = -1` | `int64` |

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

## Public attributes

### preferred_shard_

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

## Public functions

### PreferredShard

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

See the documentation for `https://www.tensorflow.org/versions/r2.0/api_docs/cc/class/tensorflow/ops/restore#classtensorflow_1_1ops_1_1_restore`.

Defaults to -1