parameters: (self, shard_dimensions)
docstring: Sets the shard_dimension of each element of the queue.
  
      shard_dimensions must be a list of length
      self.number_of_tuple_elements, and each element must be
      convertible to a Dimension compatible with self.tuple_shapes.
  
      Args:
        shard_dimensions: the dimensions of each queue element.
  
      Raises:
        ValueError: if shard_dimensions is not of length
          self.number_of_tuple_elements; or an element of
          shard_dimensions cannot be converted to a Dimension; or an
          element of shard_dimensions is a Dimension that is out of
          range for the corresponding tuple element shape.
docstring_summary: Sets the shard_dimension of each element of the queue.
docstring_tokens: Sets the shard_dimension of each element of the queue .
function: def set_shard_dimensions(self, shard_dimensions):
      """Sets the shard_dimension of each element of the queue.
  
      shard_dimensions must be a list of length
      self.number_of_tuple_elements, and each element must be
      convertible to a Dimension compatible with self.tuple_shapes.
  
      Args:
        shard_dimensions: the dimensions of each queue element.
  
      Raises:
        ValueError: if shard_dimensions is not of length
          self.number_of_tuple_elements; or an element of
          shard_dimensions cannot be converted to a Dimension; or an
          element of shard_dimensions is a Dimension that is out of
          range for the corresponding tuple element shape.
      """
      if len(shard_dimensions) != self.number_of_tuple_elements:
        raise ValueError("shard_dimensions is %s, but must be a list of length %d"
                         % (str(shard_dimensions),
                            self.number_of_tuple_elements))
      for (policy, dimension) in zip(self._sharding_policies, shard_dimensions):
        policy.set_shard_dimension(dimension)
      self._validate()
function_tokens: def set_shard_dimensions ( self , shard_dimensions ) : if len ( shard_dimensions ) != self . number_of_tuple_elements : raise ValueError ( "shard_dimensions is %s, but must be a list of length %d" % ( str ( shard_dimensions ) , self . number_of_tuple_elements ) ) for ( policy , dimension ) in zip ( self . _sharding_policies , shard_dimensions ) : policy . set_shard_dimension ( dimension ) self . _validate ( )