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","."]
docstr: Returns the shard dimension of the policy or None if unspecified.
docstr_tok: ["Returns","the","shard","dimension","of","the","policy","or","None","if","unspecified","."]
code: def shard_dimension(self):
      """Returns the shard dimension of the policy or None if unspecified."""
      return self._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 9 for calling the ShardingPolicy obj's underlying member method code with example usage: obj.shard_dimension() and returns: self