tensorflow::ops::Restore::Attrs

#include <io_ops.h>

Optional attribute setters for Restore.

Summary

Public attributes
preferred_shard_ = -1
int64
Public functions
PreferredShard(int64 x)
TF_MUST_USE_RESULT 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

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/restore/attrs