W3cubDocs

/TensorFlow 2.3

tf.data.experimental.AutoShardPolicy

Represents the type of auto-sharding we enable.

Please see the DistributeOptions.auto_shard_policy documentation for more information on each type of autosharding.

Class Variables

  • AUTO = <AutoShardPolicy.AUTO: 0>
  • DATA = <AutoShardPolicy.DATA: 2>
  • FILE = <AutoShardPolicy.FILE: 1>
  • OFF = <AutoShardPolicy.OFF: -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/python/tf/data/experimental/AutoShardPolicy