class_docstr: A class to support adding sharding attributes to Ops.
  
  Use the factory constructors and then call apply_to_tensor:
    Sharding.replicate().apply_to_tensor(tensor)
docstr: Return the sharding protobuf of type xla_data_pb2.OpSharding.
docstr_tok: ["Return","the","sharding","protobuf","of","type","xla_data_pb2.OpSharding","."]
code: def proto(self):
      """Return the sharding protobuf of type xla_data_pb2.OpSharding."""
      return self._proto
  
imports: import numpy
  from tensorflow.compiler.tf2xla.python import xla
  from local_xla.xla import xla_data_pb2
  from tensorflow.core.framework import attr_value_pb2
label_desc: Use image node_id 11 for calling the Sharding obj's underlying member method code with example usage: obj.proto() and returns: self