class_docstr: An object use to hold the sharding policy for a Tensor.
class_docstr_tok: ["An","object","use","to","hold","the","sharding","policy","for","a","Tensor","."]
code: def __init__(self):
      self._number_of_shards = None
      self._number_of_partitions = 1
      self._shard_dimension = None
      self._frozen = False
  
file_path: tensorflow-upstream/tensorflow/python/tpu/tpu_sharding.py
imports: from tensorflow.python.framework import tensor_shape
label_desc: Use image node_id 1 to create a new ShardingPolicy object from inherited base classes: object with example: obj = ShardingPolicy()