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 _fill_default_values(self):
      if self._number_of_shards is None:
          self._number_of_shards = _DEFAULT_NUMBER_OF_SHARDS
      if self._shard_dimension is None:
          self._shard_dimension = tensor_shape.as_dimension(
              _DEFAULT_SHARD_DIMENSION
          )
  
file_path: tensorflow-upstream/tensorflow/python/tpu/tpu_sharding.py
imports: from tensorflow.python.framework import tensor_shape
label_desc: Use image node_id 3 for calling the ShardingPolicy obj's underlying member method code with example usage: obj._fill_default_values() without return types